Class: PixivApi::Response::Identity
- Inherits:
-
PixivApi::Response
- Object
- PixivApi::Response
- PixivApi::Response::Identity
- Defined in:
- lib/pixiv_api/response/identity.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from PixivApi::Response
Instance Method Summary collapse
-
#initialize ⇒ Identity
constructor
A new instance of Identity.
Methods inherited from PixivApi::Response
#[], attr_reader, define_attribute_method, define_attributes_method, define_blob_method, define_time_method, from_response
Constructor Details
#initialize ⇒ Identity
Returns a new instance of Identity.
6 7 8 9 |
# File 'lib/pixiv_api/response/identity.rb', line 6 def initialize(*) super @attributes.fetch(:id) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/pixiv_api/response/identity.rb', line 4 def id @id end |