Class: Rafflesia::JoinApprovalCreateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JoinApprovalCreateRequest
- Defined in:
- lib/rafflesia/registry/join_approval_create_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ evidence_id: :evidence_id, reason: :reason }.freeze
Instance Attribute Summary collapse
-
#evidence_id ⇒ Object
Returns the value of attribute evidence_id.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(json) ⇒ JoinApprovalCreateRequest
constructor
A new instance of JoinApprovalCreateRequest.
Constructor Details
#initialize(json) ⇒ JoinApprovalCreateRequest
Returns a new instance of JoinApprovalCreateRequest.
17 18 19 20 21 22 |
# File 'lib/rafflesia/registry/join_approval_create_request.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @evidence_id = hash[:evidence_id] @reason = hash[:reason] end |
Instance Attribute Details
#evidence_id ⇒ Object
Returns the value of attribute evidence_id.
13 14 15 |
# File 'lib/rafflesia/registry/join_approval_create_request.rb', line 13 def evidence_id @evidence_id end |
#reason ⇒ Object
Returns the value of attribute reason.
13 14 15 |
# File 'lib/rafflesia/registry/join_approval_create_request.rb', line 13 def reason @reason end |