Class: Rafflesia::JoinApproval
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JoinApproval
- Defined in:
- lib/rafflesia/registry/join_approval.rb
Constant Summary collapse
- HASH_ATTRS =
{ approved_at: :approved_at, approved_by: :approved_by, evidence_digest: :evidence_digest, evidence_id: :evidence_id, from: :from, id: :id, key_variant: :key_variant, object: :object, organization_id: :organization_id, reason: :reason, relationship_id: :relationship_id, resource_group_id: :resource_group_id, status: :status, to: :to }.freeze
Instance Attribute Summary collapse
-
#approved_at ⇒ Object
Returns the value of attribute approved_at.
-
#approved_by ⇒ Object
Returns the value of attribute approved_by.
-
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
-
#evidence_id ⇒ Object
Returns the value of attribute evidence_id.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#key_variant ⇒ Object
Returns the value of attribute key_variant.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#relationship_id ⇒ Object
Returns the value of attribute relationship_id.
-
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(json) ⇒ JoinApproval
constructor
A new instance of JoinApproval.
Constructor Details
#initialize(json) ⇒ JoinApproval
Returns a new instance of JoinApproval.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/registry/join_approval.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @approved_at = hash[:approved_at] @approved_by = hash[:approved_by] @evidence_digest = hash[:evidence_digest] @evidence_id = hash[:evidence_id] @from = hash[:from] ? Rafflesia::JoinSide.new(hash[:from]) : nil @id = hash[:id] @key_variant = hash[:key_variant] @object = hash[:object] @organization_id = hash[:organization_id] @reason = hash[:reason] @relationship_id = hash[:relationship_id] @resource_group_id = hash[:resource_group_id] @status = hash[:status] @to = hash[:to] ? Rafflesia::JoinSide.new(hash[:to]) : nil end |
Instance Attribute Details
#approved_at ⇒ Object
Returns the value of attribute approved_at.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def approved_at @approved_at end |
#approved_by ⇒ Object
Returns the value of attribute approved_by.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def approved_by @approved_by end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def evidence_digest @evidence_digest end |
#evidence_id ⇒ Object
Returns the value of attribute evidence_id.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def evidence_id @evidence_id end |
#from ⇒ Object
Returns the value of attribute from.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def from @from end |
#id ⇒ Object
Returns the value of attribute id.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def id @id end |
#key_variant ⇒ Object
Returns the value of attribute key_variant.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def key_variant @key_variant end |
#object ⇒ Object
Returns the value of attribute object.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def organization_id @organization_id end |
#reason ⇒ Object
Returns the value of attribute reason.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def reason @reason end |
#relationship_id ⇒ Object
Returns the value of attribute relationship_id.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def relationship_id @relationship_id end |
#resource_group_id ⇒ Object
Returns the value of attribute resource_group_id.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def resource_group_id @resource_group_id end |
#status ⇒ Object
Returns the value of attribute status.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def status @status end |
#to ⇒ Object
Returns the value of attribute to.
25 26 27 |
# File 'lib/rafflesia/registry/join_approval.rb', line 25 def to @to end |