class Faker::Creature::Bird

def adjective

Returns:
  • (String) -
def adjective
  fetch('creature.bird.adjectives')
end

def anatomy

Returns:
  • (String) -
def anatomy
  fetch('creature.bird.anatomy')
end

def anatomy_past_tense

Returns:
  • (String) -
def anatomy_past_tense
  fetch('creature.bird.anatomy_past_tense')
end

def color

Returns:
  • (String) -
def color
  fetch('creature.bird.colors')
end

def common_family_name

Returns:
  • (String) -
def common_family_name
  fetch('creature.bird.common_family_name')
end

def common_name(tax_order = nil)

Returns:
  • (String) -

Parameters:
  • tax_order (String | Symbol | nil) -- Tax
def common_name(tax_order = nil)
  map = translate('faker.creature.bird.order_common_map')
  if tax_order.nil?
    sample(map.values.flatten).downcase
  else
    raise TypeError, 'tax_order parameter must be symbolizable' \
      unless tax_order.respond_to?(:to_sym)
    raise ArgumentError, "#{tax_order} is not a valid taxonomic order" \
                         unless map.keys.include?(tax_order.to_sym)
    the_order = translate('faker.creature.bird.order_common_map')[tax_order.to_sym]
    sample(the_order).downcase
  end
end

def emotional_adjective

Returns:
  • (String) -
def emotional_adjective
  fetch('creature.bird.emotional_adjectives')
end

def geo

Returns:
  • (String) -
def geo
  fetch('creature.bird.geo')
end

def implausible_common_name

Returns:
  • (String) -
def implausible_common_name
  parse('creature.bird.implausible_common_names').capitalize
end

def order

Returns:
  • (String) -
def order
  orders = I18n.translate('faker.creature.bird.order_common_map').keys
  sample(orders).to_s
end

def order_with_common_name(tax_order = nil)

Returns:
  • (Hash) -
def order_with_common_name(tax_order = nil)
  map = I18n.translate('faker.creature.bird.order_common_map')
  o = tax_order.nil? ? order : tax_order
  { order: o, common_name: sample(map[o.to_sym]) }
end

def plausible_common_name

Returns:
  • (String) -
def plausible_common_name
  parse('creature.bird.plausible_common_names').capitalize
end

def silly_adjective

Returns:
  • (String) -
def silly_adjective
  fetch('creature.bird.silly_adjectives')
end