Class: PixivApi::Response::User
- Inherits:
-
Identity
- Object
- PixivApi::Response
- Identity
- PixivApi::Response::User
- Defined in:
- lib/pixiv_api/response/user.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_follower ⇒ Object
readonly
Returns the value of attribute is_follower.
-
#is_following ⇒ Object
readonly
Returns the value of attribute is_following.
-
#is_friend ⇒ Object
readonly
Returns the value of attribute is_friend.
-
#is_premium ⇒ Object
readonly
Returns the value of attribute is_premium.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Attributes inherited from PixivApi::Response
Instance Method Summary collapse
Methods inherited from Identity
Methods inherited from PixivApi::Response
#[], attr_reader, define_attribute_method, define_attributes_method, define_blob_method, define_time_method, from_response, #initialize
Constructor Details
This class inherits a constructor from PixivApi::Response::Identity
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def account @account end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def id @id end |
#is_follower ⇒ Object (readonly)
Returns the value of attribute is_follower.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def is_follower @is_follower end |
#is_following ⇒ Object (readonly)
Returns the value of attribute is_following.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def is_following @is_following end |
#is_friend ⇒ Object (readonly)
Returns the value of attribute is_friend.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def is_friend @is_friend end |
#is_premium ⇒ Object (readonly)
Returns the value of attribute is_premium.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def is_premium @is_premium end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def name @name end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def profile @profile end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
4 5 6 |
# File 'lib/pixiv_api/response/user.rb', line 4 def stats @stats end |
Instance Method Details
#avatar_url ⇒ Object
9 10 11 |
# File 'lib/pixiv_api/response/user.rb', line 9 def avatar_url blob_profile_image_urls['px_50x50'] end |