Module: Invoice2go::Response

Included in:
API
Defined in:
lib/invoice2go/response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#metaObject (readonly)

Returns the value of attribute meta.



10
11
12
# File 'lib/invoice2go/response.rb', line 10

def meta
  @meta
end

#paginationObject (readonly)

Returns the value of attribute pagination.



9
10
11
# File 'lib/invoice2go/response.rb', line 9

def pagination
  @pagination
end

Class Method Details

.create(response_hash) ⇒ Object



3
4
5
6
7
# File 'lib/invoice2go/response.rb', line 3

def self.create(response_hash)
  data = response_hash.data.dup rescue response_hash
  data.extend(self)
  return data
end