Class: PixivApi::Response::Promotion
- Inherits:
-
PixivApi::Response
- Object
- PixivApi::Response
- PixivApi::Response::Promotion
- Defined in:
- lib/pixiv_api/response/promotion.rb
Instance Attribute Summary collapse
-
#ads ⇒ Object
readonly
Returns the value of attribute ads.
-
#px_user_external_site_ads_id ⇒ Object
readonly
Returns the value of attribute px_user_external_site_ads_id.
-
#site_id ⇒ Object
readonly
Returns the value of attribute site_id.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Attributes inherited from PixivApi::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
#ads ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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 |