Class: Butterfly::User

Inherits:
Object
  • Object
show all
Defined in:
lib/butterfly/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ User

Returns a new instance of User.



12
13
14
15
16
# File 'lib/butterfly/user.rb', line 12

def initialize(attributes = {})
  attributes.each_pair do |key, value|
    self.send("#{key}=", value)
  end
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def id
  @id
end

#locationObject

Returns the value of attribute location.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def location
  @location
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def name
  @name
end

#photo_urlObject

Returns the value of attribute photo_url.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def photo_url
  @photo_url
end

#service_urlObject

Returns the value of attribute service_url.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def service_url
  @service_url
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def username
  @username
end

#website_urlObject

Returns the value of attribute website_url.



4
5
6
# File 'lib/butterfly/user.rb', line 4

def website_url
  @website_url
end