Class: PixivApi::Response::Promotion

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

Instance Attribute Summary collapse

Attributes inherited from PixivApi::Response

#attributes, #response

Class Method Summary collapse

Methods inherited from PixivApi::Response

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

Constructor Details

This class inherits a constructor from PixivApi::Response

Instance Attribute Details

#adsObject (readonly)

Returns the value of attribute ads.



8
9
10
# File 'lib/pixiv_api/response/promotion.rb', line 8

def ads
  @ads
end

#px_user_external_site_ads_idObject (readonly)

Returns the value of attribute px_user_external_site_ads_id.



8
9
10
# File 'lib/pixiv_api/response/promotion.rb', line 8

def px_user_external_site_ads_id
  @px_user_external_site_ads_id
end

#site_idObject (readonly)

Returns the value of attribute site_id.



8
9
10
# File 'lib/pixiv_api/response/promotion.rb', line 8

def site_id
  @site_id
end

#user_idObject (readonly)

Returns the value of attribute user_id.



8
9
10
# File 'lib/pixiv_api/response/promotion.rb', line 8

def user_id
  @user_id
end

Class Method Details

.from_response(response, attributes) ⇒ Object



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

def self.from_response(response, attributes)
  new(response, attributes)
end