Class: Rafflesia::ObjectArtifactAcceptanceGate

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#commandObject

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

#nameObject

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

#provesObject

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_forObject

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