Class: Rafflesia::CorpuReleasePublishGate

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

Instance Method Summary collapse

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

#detailObject

Returns the value of attribute detail.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_publish_gate.rb', line 16

def detail
  @detail
end

#familyObject

Returns the value of attribute family.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_publish_gate.rb', line 16

def family
  @family
end

#gateObject

Returns the value of attribute gate.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_publish_gate.rb', line 16

def gate
  @gate
end

#statusObject

Returns the value of attribute status.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_publish_gate.rb', line 16

def status
  @status
end

#valuesObject

Returns the value of attribute values.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_publish_gate.rb', line 16

def values
  @values
end