Class: AteTracks::Structures::User
- Inherits:
-
Object
- Object
- AteTracks::Structures::User
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#avatar_urls ⇒ Object
Returns the value of attribute avatar_urls.
-
#bio ⇒ Object
Returns the value of attribute bio.
-
#bio_html ⇒ Object
Returns the value of attribute bio_html.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#login ⇒ Object
Returns the value of attribute login.
-
#member_since ⇒ Object
Returns the value of attribute member_since.
-
#path ⇒ Object
Returns the value of attribute path.
-
#web_path ⇒ Object
Returns the value of attribute web_path.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
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_urls ⇒ Object
Returns the value of attribute avatar_urls.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def avatar_urls @avatar_urls end |
#bio ⇒ Object
Returns the value of attribute bio.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def bio @bio end |
#bio_html ⇒ Object
Returns the value of attribute bio_html.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def bio_html @bio_html end |
#country ⇒ Object
Returns the value of attribute country.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def location @location end |
#login ⇒ Object
Returns the value of attribute login.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def login @login end |
#member_since ⇒ Object
Returns the value of attribute member_since.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def member_since @member_since end |
#path ⇒ Object
Returns the value of attribute path.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def path @path end |
#web_path ⇒ Object
Returns the value of attribute web_path.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def web_path @web_path end |
#website ⇒ Object
Returns the value of attribute website.
161 162 163 |
# File 'lib/atetracks/structures.rb', line 161 def website @website end |