Class: Steam::Web::Api::RequestUrl
- Inherits:
-
Object
- Object
- Steam::Web::Api::RequestUrl
- Defined in:
- lib/steam/web/api/request_url.rb
Constant Summary collapse
- DEFAULT_VERSION =
'v0002'
Instance Attribute Summary collapse
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(interface, method, params, version) ⇒ RequestUrl
constructor
A new instance of RequestUrl.
- #to_s ⇒ Object
Constructor Details
#initialize(interface, method, params, version) ⇒ RequestUrl
Returns a new instance of RequestUrl.
10 11 12 13 14 15 |
# File 'lib/steam/web/api/request_url.rb', line 10 def initialize(interface, method, params, version) @interface = interface @method = method @params = params @version = version end |
Instance Attribute Details
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
8 9 10 |
# File 'lib/steam/web/api/request_url.rb', line 8 def interface @interface end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
8 9 10 |
# File 'lib/steam/web/api/request_url.rb', line 8 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'lib/steam/web/api/request_url.rb', line 8 def params @params end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/steam/web/api/request_url.rb', line 17 def to_s "#{url}?#{RequestParams.new(params).query_string}" end |