Class: Rafflesia::HomologyQueryContextExecutionFailure
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HomologyQueryContextExecutionFailure
- Defined in:
- lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, is_retryable: :is_retryable, message: :message, request_id: :request_id, status_code: :status_code, type: :type }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#is_retryable ⇒ Object
Returns the value of attribute is_retryable.
-
#message ⇒ Object
Returns the value of attribute message.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ HomologyQueryContextExecutionFailure
constructor
A new instance of HomologyQueryContextExecutionFailure.
Constructor Details
#initialize(json) ⇒ HomologyQueryContextExecutionFailure
Returns a new instance of HomologyQueryContextExecutionFailure.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @code = hash[:code] @is_retryable = hash[:is_retryable] @message = hash[:message] @request_id = hash[:request_id] @status_code = hash[:status_code] @type = hash[:type] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def code @code end |
#is_retryable ⇒ Object
Returns the value of attribute is_retryable.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def is_retryable @is_retryable end |
#message ⇒ Object
Returns the value of attribute message.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def @message end |
#request_id ⇒ Object
Returns the value of attribute request_id.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def request_id @request_id end |
#status_code ⇒ Object
Returns the value of attribute status_code.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def status_code @status_code end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_execution_failure.rb', line 17 def type @type end |