Class: PixivApi::Response::Identity

Inherits:
PixivApi::Response show all
Defined in:
lib/pixiv_api/response/identity.rb

Direct Known Subclasses

Friend, Novel, User, Work

Instance Attribute Summary collapse

Attributes inherited from PixivApi::Response

#attributes, #response

Instance Method Summary collapse

Methods inherited from PixivApi::Response

#[], attr_reader, define_attribute_method, define_attributes_method, define_blob_method, define_time_method, from_response

Constructor Details

#initializeIdentity

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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/pixiv_api/response/identity.rb', line 4

def id
  @id
end