class Faker::Relationship
def familial(connection: nil)
-
(String)
-
def familial(connection: nil) familial_connections = translate('faker.relationship.familial').keys if connection.nil? connection = sample(familial_connections).to_s else connection = connection.to_s.downcase unless familial_connections.include?(connection.to_sym) raise ArgumentError, "Familial connections can be left blank or #{familial_connections.join(', ')}" end end fetch("relationship.familial.#{connection}") end
def in_law
-
(String)
-
def in_law fetch('relationship.in_law') end
def parent
-
(String)
-
def parent fetch('relationship.parent') end
def sibling
-
(String)
-
def sibling fetch('relationship.sibling') end
def spouse
-
(String)
-
def spouse fetch('relationship.spouse') end