Sha256: 652ac1524c72828829b9ff52a79a1c8e07f7fea790569833c6685ae3fc0e1d0a

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

module Instagram
  module Response
    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

    attr_reader :pagination
    attr_reader :meta
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
instagram-1.1.3 lib/instagram/response.rb
instagram-1.1.2 lib/instagram/response.rb
instagram-1.1.1 lib/instagram/response.rb
instagram-1.1.0 lib/instagram/response.rb
instagram-1.0.0 lib/instagram/response.rb
instagram-0.11.0 lib/instagram/response.rb
instagram-0.10.0 lib/instagram/response.rb
instagram-0.9.1 lib/instagram/response.rb