Class: Rafflesia::ApprovedJoin

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/approved_join.rb

Constant Summary collapse

HASH_ATTRS =
{
  approval: :approval,
  evidence: :evidence
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ApprovedJoin

Returns a new instance of ApprovedJoin.



17
18
19
20
21
22
# File 'lib/rafflesia/registry/approved_join.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @approval = hash[:approval] ? Rafflesia::JoinApproval.new(hash[:approval]) : nil
  @evidence = hash[:evidence] ? Rafflesia::JoinEvidence.new(hash[:evidence]) : nil
end

Instance Attribute Details

#approvalObject

Returns the value of attribute approval.



13
14
15
# File 'lib/rafflesia/registry/approved_join.rb', line 13

def approval
  @approval
end

#evidenceObject

Returns the value of attribute evidence.



13
14
15
# File 'lib/rafflesia/registry/approved_join.rb', line 13

def evidence
  @evidence
end