Class: Rafflesia::InvitationPreviewResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::InvitationPreviewResponse
- Defined in:
- lib/rafflesia/auth/invitation_preview_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, expires_at: :expires_at, role: :role, state: :state }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#role ⇒ Object
Returns the value of attribute role.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(json) ⇒ InvitationPreviewResponse
constructor
A new instance of InvitationPreviewResponse.
Constructor Details
#initialize(json) ⇒ InvitationPreviewResponse
Returns a new instance of InvitationPreviewResponse.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/auth/invitation_preview_response.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @email = hash[:email] @expires_at = hash[:expires_at] @role = hash[:role] @state = hash[:state] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
15 16 17 |
# File 'lib/rafflesia/auth/invitation_preview_response.rb', line 15 def email @email end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
15 16 17 |
# File 'lib/rafflesia/auth/invitation_preview_response.rb', line 15 def expires_at @expires_at end |
#role ⇒ Object
Returns the value of attribute role.
15 16 17 |
# File 'lib/rafflesia/auth/invitation_preview_response.rb', line 15 def role @role end |
#state ⇒ Object
Returns the value of attribute state.
15 16 17 |
# File 'lib/rafflesia/auth/invitation_preview_response.rb', line 15 def state @state end |