Class: Mushikago::Hotaru::DomainCreateRequest

Inherits:
Mushikago::Http::PostRequest show all
Defined in:
lib/mushikago/hotaru/domain_create_request.rb

Instance Attribute Summary

Attributes inherited from Mushikago::Http::Request

headers, host, params, path, port

Instance Method Summary (collapse)

Methods inherited from Mushikago::Http::PostRequest

#http_method

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Mushikago::Http::Request

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

Constructor Details

- (DomainCreateRequest) initialize(domain_name, splitter, options = {})

A new instance of DomainCreateRequest



12
13
14
15
16
17
18
19
# File 'lib/mushikago/hotaru/domain_create_request.rb', line 12

def initialize domain_name, splitter, options={}
  super(options)
  self.domain_name = domain_name
  self.splitter = splitter
  self.description = options[:description] if options.has_key?(:description)
  self.dictionary_ids = options[:dictionary_ids] if options.has_key?(:dictionary_ids)
  self.tags = options[:tags] if options.has_key?(:tags)
end

Instance Method Details

- (Object) path



5
# File 'lib/mushikago/hotaru/domain_create_request.rb', line 5

def path; '/1/hotaru/domain/create' end