Sha256: 7be63fe7b56615f6727ed9b8eb52ee431cbbe5e032700e025615f1ca66dc1b20

Contents?: true

Size: 841 Bytes

Versions: 12

Compression:

Stored size: 841 Bytes

Contents

# -*- coding: utf-8 -*-
module Mushikago
  module Hotaru
    class DomainCreateRequest < Mushikago::Http::PostRequest
      def path; '/1/hotaru/domain/create' end
      request_parameter :domain_name
      request_parameter :splitter
      request_parameter :description
      request_parameter :dictionary_ids do |v| [v].flatten.compact.join(',') end
      request_parameter :tags do |v| [v].flatten.compact.join(',') end

      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
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mushikago-sdk-2.4.3 lib//mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.4.2 lib//mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.4.1 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.4 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.2 lib//mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.1.1 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.1.0 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-2.0.0 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-0.4.3 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-0.4.2 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-0.4.1 lib/mushikago/hotaru/domain_create_request.rb
mushikago-sdk-0.4.0 lib/mushikago/hotaru/domain_create_request.rb