Class: Rafflesia::DatasetFailure
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetFailure
- Defined in:
- lib/rafflesia/datasets/dataset_failure.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, message: :message, path: :path, stage: :stage, table: :table }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#path ⇒ Object
Returns the value of attribute path.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetFailure
constructor
A new instance of DatasetFailure.
Constructor Details
#initialize(json) ⇒ DatasetFailure
Returns a new instance of DatasetFailure.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @code = hash[:code] @message = hash[:message] @path = hash[:path] @stage = hash[:stage] @table = hash[:table] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 16 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 16 def @message end |
#path ⇒ Object
Returns the value of attribute path.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 16 def path @path end |
#stage ⇒ Object
Returns the value of attribute stage.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 16 def stage @stage end |
#table ⇒ Object
Returns the value of attribute table.
16 17 18 |
# File 'lib/rafflesia/datasets/dataset_failure.rb', line 16 def table @table end |