Class: Mountapi::Request::Parameters
- Inherits:
-
Object
- Object
- Mountapi::Request::Parameters
- Defined in:
- lib/mountapi/request/parameters.rb
Instance Method Summary collapse
-
#initialize(query:, header:, body:) ⇒ Parameters
constructor
A new instance of Parameters.
- #to_h ⇒ Object
Constructor Details
#initialize(query:, header:, body:) ⇒ Parameters
Returns a new instance of Parameters.
4 5 6 7 8 |
# File 'lib/mountapi/request/parameters.rb', line 4 def initialize(query:, header:, body:) @query = query @header = header @body = body end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 |
# File 'lib/mountapi/request/parameters.rb', line 10 def to_h { body: @body, header: @header, query: @query } end |