Sha256: 46232f1d0d10f7206950b3e5dc4cc99bab43885d4941963f7c506638451448fc

Contents?: true

Size: 962 Bytes

Versions: 9

Compression:

Stored size: 962 Bytes

Contents

# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/account_with_user"
require "pokepay_partner_ruby_sdk/response/cashtray_attempt"
require "pokepay_partner_ruby_sdk/response/transaction"

module Pokepay::Response
  class CashtrayWithResult
    def initialize(row)
      @id = row["id"]
      @amount = row["amount"]
      @description = row["description"]
      @account = AccountWithUser.new(row["account"])
      @expires_at = row["expires_at"]
      @canceled_at = row["canceled_at"]
      @token = row["token"]
      @attempt = row["attempt"] and CashtrayAttempt.new(row["attempt"])
      @transaction = row["transaction"] and Transaction.new(row["transaction"])
    end
    attr_reader :id
    attr_reader :amount
    attr_reader :description
    attr_reader :account
    attr_reader :expires_at
    attr_reader :canceled_at
    attr_reader :token
    attr_reader :attempt
    attr_reader :transaction
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pokepay_partner_ruby_sdk-0.3.2 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.3.1 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.3.0 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.2.0 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.1.19 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.1.18 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.1.17 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.1.15.1 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
pokepay_partner_ruby_sdk-0.1.15 lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb