Class: YourImageShare::ListMeta
- Inherits:
-
Struct
- Object
- Struct
- YourImageShare::ListMeta
- Defined in:
- lib/yourimageshare/types.rb
Overview
Pagination info for a #list result.
Instance Attribute Summary collapse
-
#current_page ⇒ Object
Returns the value of attribute current_page.
-
#last_page ⇒ Object
Returns the value of attribute last_page.
-
#total ⇒ Object
Returns the value of attribute total.
Class Method Summary collapse
Instance Attribute Details
#current_page ⇒ Object
Returns the value of attribute current_page
21 22 23 |
# File 'lib/yourimageshare/types.rb', line 21 def current_page @current_page end |
#last_page ⇒ Object
Returns the value of attribute last_page
21 22 23 |
# File 'lib/yourimageshare/types.rb', line 21 def last_page @last_page end |
#total ⇒ Object
Returns the value of attribute total
21 22 23 |
# File 'lib/yourimageshare/types.rb', line 21 def total @total end |
Class Method Details
.from_json(h) ⇒ Object
22 23 24 |
# File 'lib/yourimageshare/types.rb', line 22 def self.from_json(h) new(current_page: h["current_page"], last_page: h["last_page"], total: h["total"]) end |