Class: Mushikago::Hotaru::CollocationWordlistRequest
- Inherits:
-
Mushikago::Http::GetRequest
- Object
- Mushikago::Http::Request
- Mushikago::Http::GetRequest
- Mushikago::Hotaru::CollocationWordlistRequest
- Defined in:
- lib/mushikago/hotaru/collocation_wordlist_request.rb
Instance Attribute Summary
Attributes inherited from Mushikago::Http::Request
#headers, #host, #params, #port
Instance Method Summary collapse
-
#initialize(domain_name, collocation_id, options = {}) ⇒ CollocationWordlistRequest
constructor
A new instance of CollocationWordlistRequest.
- #path ⇒ Object
Methods inherited from Mushikago::Http::GetRequest
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, collocation_id, options = {}) ⇒ CollocationWordlistRequest
Returns a new instance of CollocationWordlistRequest.
12 13 14 15 16 17 18 19 |
# File 'lib/mushikago/hotaru/collocation_wordlist_request.rb', line 12 def initialize domain_name, collocation_id, ={} super() self.domain_name = domain_name self.collocation_id = collocation_id self.limit = [:limit] if .has_key?(:limit) self.offset = [:offset] if .has_key?(:offset) self.filter = [:filter] if .has_key?(:filter) end |
Instance Method Details
#path ⇒ Object
5 |
# File 'lib/mushikago/hotaru/collocation_wordlist_request.rb', line 5 def path; '/1/hotaru/collocation/wordlist' end |