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