class Transaction

Attributes

amount[RW]
beanstalkd_jid[RW]
exception_message[RW]
exception_type[RW]
fields[RW]
id[RW]
provider[RW]
response[RW]
response_code[RW]
response_message[RW]
retry_count[RW]
sidekiq_jid[RW]

Public Class Methods

new(id=nil) click to toggle source
# File lib/models/transaction.rb, line 6
      def initialize(id=nil)
    self.retry_count = 0
    self.provider = Provider.new
    self.fields =  {reference: "", end_user_id: "", priority: "normal", code:"", end_user_ip_address: "192.168.0.1", monitor_as_url: "http://10.33.33.22:3000/v1/services/gt/claro-postpay/accounts/1", account_number: "55748576", total_cents: ""}
    self.beanstalkd_jid = nil
    self.id = id
end

Public Instance Methods

find(account_id) click to toggle source
# File lib/models/transaction.rb, line 14
def find(account_id)
        Transaction.new(account_id)
end
save!(args = {}) click to toggle source
# File lib/models/transaction.rb, line 18
def save!(args = {})
        puts "save transaction!"
end