Module: Instagram::Response
- Defined in:
- lib/instagram/response.rb
Instance Attribute Summary collapse
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#pagination ⇒ Object
readonly
Returns the value of attribute pagination.
Class Method Summary collapse
Instance Attribute Details
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
14 15 16 |
# File 'lib/instagram/response.rb', line 14 def @meta end |
#pagination ⇒ Object (readonly)
Returns the value of attribute pagination.
13 14 15 |
# File 'lib/instagram/response.rb', line 13 def pagination @pagination end |
Class Method Details
.create(response_hash) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/instagram/response.rb', line 3 def self.create( response_hash ) data = response_hash.data.dup rescue response_hash data.extend( self ) data.instance_exec do @pagination = response_hash.pagination @meta = response_hash. end data end |