class FroyoApi::Name
Attributes
firstname[R]
fullname[R]
gender[R]
lastname[R]
Public Class Methods
new(gender = 'm')
click to toggle source
# File lib/froyo_api/name.rb, line 5 def initialize(gender = 'm') @gender = gender @fullname = attributes['fullname'] @firstname = attributes['firstname'] @lastname = attributes['lastname'] end
Public Instance Methods
attributes()
click to toggle source
# File lib/froyo_api/name.rb, line 12 def attributes @attributes ||= generate end
Private Instance Methods
generate()
click to toggle source
# File lib/froyo_api/name.rb, line 22 def generate request(path)['attributes'] end
path()
click to toggle source
# File lib/froyo_api/name.rb, line 18 def path "names?gender=#{gender}" end