Class: AteTracks::Structures::User

Inherits:
Object
  • Object
show all
Defined in:
lib/atetracks/structures.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ User

Returns a new instance of User.



164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/atetracks/structures.rb', line 164

def initialize(data)
  return nil if data.nil?
  @id = data['id']
  @login = data['login']
  @path = data['path']
  @web_path = data['web_path']
  @avatar_urls = AvatarURLs.new(data['avatar_urls'])
  @location = data['location']
  @bio_html = data['bio_html']
  @website = data['website']
  @country = data['country']
  @member_since = data['member_since']
  @bio = data['bio']
end

Instance Attribute Details

#avatar_urlsObject

Returns the value of attribute avatar_urls.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def avatar_urls
  @avatar_urls
end

#bioObject

Returns the value of attribute bio.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def bio
  @bio
end

#bio_htmlObject

Returns the value of attribute bio_html.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def bio_html
  @bio_html
end

#countryObject

Returns the value of attribute country.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def country
  @country
end

#idObject

Returns the value of attribute id.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def id
  @id
end

#locationObject

Returns the value of attribute location.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def location
  @location
end

#loginObject

Returns the value of attribute login.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def 
  @login
end

#member_sinceObject

Returns the value of attribute member_since.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def member_since
  @member_since
end

#pathObject

Returns the value of attribute path.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def path
  @path
end

#web_pathObject

Returns the value of attribute web_path.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def web_path
  @web_path
end

#websiteObject

Returns the value of attribute website.



161
162
163
# File 'lib/atetracks/structures.rb', line 161

def website
  @website
end