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