Sha256: b9163fa18864c4def3f0a9af268b6a920df64fa1da20b609009b802b7e3bf1d7

Contents?: true

Size: 904 Bytes

Versions: 12

Compression:

Stored size: 904 Bytes

Contents

# -*- coding: utf-8 -*-
module Mushikago
  module Hotaru
    class TextListRequest < Mushikago::Http::GetRequest
      def path; '/1/hotaru/text/list' end
      request_parameter :domain_name
      request_parameter :limit do |v| v.to_i.to_s end
      request_parameter :offset do |v| v.to_i.to_s end
      request_parameter :filter
      request_parameter :tags do |v| [v].flatten.compact.join(',') end
      request_parameter :status

      def initialize domain_name, options={}
        super(options)
        self.domain_name = domain_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)
        self.tags = options[:tags] if options.has_key?(:tags)
        self.status = options[:status] if options.has_key?(:status)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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