class MC2P::ReadOnlyResourceMixin
Allows send requests of list and detail
Public Instance Methods
list(abs_url = nil)
click to toggle source
Params:
abs_url
-
if is passed the request is sent to this url
Returns: a paginator class with the response of the server
# File lib/mixins.rb, line 256 def list(abs_url = nil) json_dict = @api_request.get( abs_url.nil? ? @path : nil, nil, abs_url, self ) @paginator_class.new(json_dict, @object_item_class, self) end