Class: Rafflesia::AuthEnvelopeListTeamInvitationResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/auth/auth_envelope_list_team_invitation_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  data: :data,
  error: :error,
  ok: :ok
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AuthEnvelopeListTeamInvitationResponse

Returns a new instance of AuthEnvelopeListTeamInvitationResponse.



19
20
21
22
23
24
25
# File 'lib/rafflesia/auth/auth_envelope_list_team_invitation_response.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @data = (hash[:data] || []).map { |item| item ? Rafflesia::TeamInvitationResponse.new(item) : nil }
  @error = hash[:error] ? Rafflesia::AuthError.new(hash[:error]) : nil
  @ok = hash[:ok]
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



14
15
16
# File 'lib/rafflesia/auth/auth_envelope_list_team_invitation_response.rb', line 14

def data
  @data
end

#errorObject

Returns the value of attribute error.



14
15
16
# File 'lib/rafflesia/auth/auth_envelope_list_team_invitation_response.rb', line 14

def error
  @error
end

#okObject

Returns the value of attribute ok.



14
15
16
# File 'lib/rafflesia/auth/auth_envelope_list_team_invitation_response.rb', line 14

def ok
  @ok
end