Class: Pokepay::Response::CashtrayAttempt

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ CashtrayAttempt

Returns a new instance of CashtrayAttempt.



7
8
9
10
11
12
13
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 7

def initialize(row)
  @account = row["account"] and AccountWithUser.new(row["account"])
  @status_code = row["status_code"]
  @error_type = row["error_type"]
  @error_message = row["error_message"]
  @created_at = row["created_at"]
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 14

def 
  @account
end

#created_atObject (readonly)

Returns the value of attribute created_at.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 18

def created_at
  @created_at
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 17

def error_message
  @error_message
end

#error_typeObject (readonly)

Returns the value of attribute error_type.



16
17
18
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 16

def error_type
  @error_type
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



15
16
17
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_attempt.rb', line 15

def status_code
  @status_code
end