Class: Mushikago::Mitsubachi::ResourceListRequest

Inherits:
Request show all
Defined in:
lib/mushikago/mitsubachi/resource_list_request.rb

Instance Attribute Summary

Attributes inherited from Http::Request

headers, host, http_method, params, path, port

Instance Method Summary (collapse)

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Http::Request

#[], #[]=, add_param, #to_http_request, #url_encoded_params

Constructor Details

- (ResourceListRequest) initialize(project_name, options = {})

A new instance of ResourceListRequest



11
12
13
14
15
16
17
# File 'lib/mushikago/mitsubachi/resource_list_request.rb', line 11

def initialize project_name, options={}
  super(options)
  self.project_name = project_name
  self.limit = options[:limit] if options.has_key?(:limit)
  self.offset = options[:offset] if options.has_key?(:offset)
  self.filter = options[:filter] if options.has_key?(:filter)
end

Instance Method Details

- (Object) method_name



5
# File 'lib/mushikago/mitsubachi/resource_list_request.rb', line 5

def method_name; 'resource/list' end