Class: PlayAsia::Query
- Inherits:
-
Object
- Object
- PlayAsia::Query
- Defined in:
- lib/play_asia/query.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #build(headers, opts) ⇒ Object
- #exec ⇒ Object
-
#initialize(http_client) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(http_client) ⇒ Query
Returns a new instance of Query.
4 5 6 7 |
# File 'lib/play_asia/query.rb', line 4 def initialize(http_client) @endpoint = 'http://www.play-asia.com/__api__.php' @http_client = http_client end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
2 3 4 |
# File 'lib/play_asia/query.rb', line 2 def url @url end |
Instance Method Details
#build(headers, opts) ⇒ Object
9 10 11 |
# File 'lib/play_asia/query.rb', line 9 def build(headers, opts) @url = build_url(@endpoint, opts) end |