Class: Mushikago::Hanamgri::CreateDomainRequest
- Inherits:
-
Mushikago::Http::PutRequest
- Object
- Mushikago::Http::Request
- Mushikago::Http::PutRequest
- Mushikago::Hanamgri::CreateDomainRequest
- Defined in:
- lib/mushikago/hanamgri/create_domain_request.rb
Instance Attribute Summary collapse
-
#domain_name ⇒ Object
Returns the value of attribute domain_name.
Attributes inherited from Mushikago::Http::Request
#headers, #host, #params, #port
Instance Method Summary collapse
-
#initialize(domain_name, seeds, schema, options = {}) ⇒ CreateDomainRequest
constructor
A new instance of CreateDomainRequest.
- #path ⇒ Object
Methods inherited from Mushikago::Http::PutRequest
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
#initialize(domain_name, seeds, schema, options = {}) ⇒ CreateDomainRequest
Returns a new instance of CreateDomainRequest.
12 13 14 15 16 17 18 19 20 |
# File 'lib/mushikago/hanamgri/create_domain_request.rb', line 12 def initialize domain_name, seeds, schema, ={} super() raise unless schema.kind_of? Mushikago::Hanamgri::Schema self.domain_name = domain_name self.seeds = seeds self.schema = schema self.description = [:description] if .has_key?(:description) self.dictionary_name = [:dictionary_name] if .has_key?(:dictionary_name) end |
Instance Attribute Details
#domain_name ⇒ Object
Returns the value of attribute domain_name.
6 7 8 |
# File 'lib/mushikago/hanamgri/create_domain_request.rb', line 6 def domain_name @domain_name end |
Instance Method Details
#path ⇒ Object
5 |
# File 'lib/mushikago/hanamgri/create_domain_request.rb', line 5 def path; "/1/hanamgri/domains/#{domain_name}" end |