class MC2P::Resource
Resource
- class used to manage the requests to the API related with a resource ex: product
Public Class Methods
new(api_request, path, object_item_class)
click to toggle source
Initializes a resource Params:
api_request
-
Api request used to make all the requests to the API
path
-
Path used to make all the requests to the API
object_item_class
-
Object item class used to return values
Calls superclass method
# File lib/base.rb, line 227 def initialize(api_request, path, object_item_class) @paginator_class = Paginator super(api_request, path, object_item_class, @paginator_class) end