Class: Threads::API::Profile
- Inherits:
-
Object
- Object
- Threads::API::Profile
- Defined in:
- lib/threads/api/profile.rb
Instance Attribute Summary collapse
-
#biography ⇒ Object
(also: #bio)
readonly
Returns the value of attribute biography.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#profile_picture_url ⇒ Object
readonly
Returns the value of attribute profile_picture_url.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(json) ⇒ Profile
constructor
A new instance of Profile.
Constructor Details
#initialize(json) ⇒ Profile
Returns a new instance of Profile.
8 9 10 11 12 13 |
# File 'lib/threads/api/profile.rb', line 8 def initialize(json) @id = json["id"] @username = json["username"] @profile_picture_url = json["profile_picture_url"] @biography = json["biography"] end |
Instance Attribute Details
#biography ⇒ Object (readonly) Also known as: bio
Returns the value of attribute biography.
6 7 8 |
# File 'lib/threads/api/profile.rb', line 6 def biography @biography end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/threads/api/profile.rb', line 6 def id @id end |
#profile_picture_url ⇒ Object (readonly)
Returns the value of attribute profile_picture_url.
6 7 8 |
# File 'lib/threads/api/profile.rb', line 6 def profile_picture_url @profile_picture_url end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
6 7 8 |
# File 'lib/threads/api/profile.rb', line 6 def username @username end |