Class: Threads::API::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/threads/api/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#biographyObject (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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/threads/api/profile.rb', line 6

def id
  @id
end

#profile_picture_urlObject (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

#usernameObject (readonly)

Returns the value of attribute username.



6
7
8
# File 'lib/threads/api/profile.rb', line 6

def username
  @username
end