Class: Rafflesia::QueryExportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryExportRequest
- Defined in:
- lib/rafflesia/query_exports/query_export_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ format: :format, max_rows: :max_rows, query: :query, retention_days: :retention_days }.freeze
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#max_rows ⇒ Object
Returns the value of attribute max_rows.
-
#query ⇒ Object
Returns the value of attribute query.
-
#retention_days ⇒ Object
Returns the value of attribute retention_days.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryExportRequest
constructor
A new instance of QueryExportRequest.
Constructor Details
#initialize(json) ⇒ QueryExportRequest
Returns a new instance of QueryExportRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/query_exports/query_export_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @format = hash[:format] @max_rows = hash[:max_rows] @query = hash[:query] ? Rafflesia::QueryRequest.new(hash[:query]) : nil @retention_days = hash[:retention_days] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
15 16 17 |
# File 'lib/rafflesia/query_exports/query_export_request.rb', line 15 def format @format end |
#max_rows ⇒ Object
Returns the value of attribute max_rows.
15 16 17 |
# File 'lib/rafflesia/query_exports/query_export_request.rb', line 15 def max_rows @max_rows end |
#query ⇒ Object
Returns the value of attribute query.
15 16 17 |
# File 'lib/rafflesia/query_exports/query_export_request.rb', line 15 def query @query end |
#retention_days ⇒ Object
Returns the value of attribute retention_days.
15 16 17 |
# File 'lib/rafflesia/query_exports/query_export_request.rb', line 15 def retention_days @retention_days end |