Class: Unit::Statement::GetHtmlByIdRequest
- Inherits:
-
Object
- Object
- Unit::Statement::GetHtmlByIdRequest
- Defined in:
- lib/unit/models/statement/get_html_by_id_request.rb
Instance Attribute Summary collapse
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#language ⇒ Object
Returns the value of attribute language.
-
#statement_id ⇒ Object
Returns the value of attribute statement_id.
Instance Method Summary collapse
-
#initialize(statement_id, customer_id, language = nil) ⇒ GetHtmlByIdRequest
constructor
A new instance of GetHtmlByIdRequest.
- #to_hash ⇒ Object
Constructor Details
#initialize(statement_id, customer_id, language = nil) ⇒ GetHtmlByIdRequest
Returns a new instance of GetHtmlByIdRequest.
13 14 15 16 17 |
# File 'lib/unit/models/statement/get_html_by_id_request.rb', line 13 def initialize(statement_id, customer_id, language = nil) @statement_id = statement_id @customer_id = customer_id @language = language end |
Instance Attribute Details
#customer_id ⇒ Object
Returns the value of attribute customer_id.
8 9 10 |
# File 'lib/unit/models/statement/get_html_by_id_request.rb', line 8 def customer_id @customer_id end |
#language ⇒ Object
Returns the value of attribute language.
8 9 10 |
# File 'lib/unit/models/statement/get_html_by_id_request.rb', line 8 def language @language end |
#statement_id ⇒ Object
Returns the value of attribute statement_id.
8 9 10 |
# File 'lib/unit/models/statement/get_html_by_id_request.rb', line 8 def statement_id @statement_id end |
Instance Method Details
#to_hash ⇒ Object
19 20 21 22 23 |
# File 'lib/unit/models/statement/get_html_by_id_request.rb', line 19 def to_hash params = { "filter[customerId]": customer_id, "language": language } params.compact end |