Module: Instagram::Response

Defined in:
lib/instagram/response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#metaObject (readonly)

Returns the value of attribute meta.



14
15
16
# File 'lib/instagram/response.rb', line 14

def meta
  @meta
end

#paginationObject (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.meta
  end
  data
end