Sha256: 1313525d96ce369c15c18484e329a960d5740510cc6ec8eaa8d8d5ac452d43dc
Contents?: true
Size: 785 Bytes
Versions: 12
Compression:
Stored size: 785 Bytes
Contents
# -*- coding: utf-8 -*- module Mushikago module Hotaru class CollocationListRequest < Mushikago::Http::GetRequest def path; '/1/hotaru/collocation/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 :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.status = options[:status] if options.has_key?(:status) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems