Class: BigCommerce::ManagementAPI::Endpoint::Response::Meta

Inherits:
Object
  • Object
show all
Defined in:
lib/big_commerce/management_api/endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta) ⇒ Meta

Returns a new instance of Meta.



124
125
126
127
128
129
130
# File 'lib/big_commerce/management_api/endpoint.rb', line 124

def initialize(meta)
  @total = meta["total"]
  @success = meta["success"]
  @failed = meta["failed"]

  @pagination = Pagination.new(meta["pagination"]) if meta["pagination"]
end

Instance Attribute Details

#failedObject (readonly)

Returns the value of attribute failed.



122
123
124
# File 'lib/big_commerce/management_api/endpoint.rb', line 122

def failed
  @failed
end

#paginationObject (readonly)

Returns the value of attribute pagination.



122
123
124
# File 'lib/big_commerce/management_api/endpoint.rb', line 122

def pagination
  @pagination
end

#successObject (readonly)

Returns the value of attribute success.



122
123
124
# File 'lib/big_commerce/management_api/endpoint.rb', line 122

def success
  @success
end

#totalObject (readonly)

Returns the value of attribute total.



122
123
124
# File 'lib/big_commerce/management_api/endpoint.rb', line 122

def total
  @total
end