Class: Pokepay::Response::PaginatedCampaigns
- Inherits:
-
Object
- Object
- Pokepay::Response::PaginatedCampaigns
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/paginated_campaigns.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#pagination ⇒ Object
readonly
Returns the value of attribute pagination.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(row) ⇒ PaginatedCampaigns
constructor
A new instance of PaginatedCampaigns.
Constructor Details
#initialize(row) ⇒ PaginatedCampaigns
Returns a new instance of PaginatedCampaigns.
7 8 9 10 11 |
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_campaigns.rb', line 7 def initialize(row) @rows = row["rows"] @count = row["count"] @pagination = Pagination.new(row["pagination"]) end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
13 14 15 |
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_campaigns.rb', line 13 def count @count end |
#pagination ⇒ Object (readonly)
Returns the value of attribute pagination.
14 15 16 |
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_campaigns.rb', line 14 def pagination @pagination end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
12 13 14 |
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_campaigns.rb', line 12 def rows @rows end |