class MidtransApi::Api::Base

Attributes

client[R]

Public Class Methods

model_class() click to toggle source
# File lib/midtrans_api/api/base.rb, line 13
def model_class
  Object.const_get(model_name)
end
model_name() click to toggle source
# File lib/midtrans_api/api/base.rb, line 9
def model_name
  name.sub('Api', 'Model')
end
new(client) click to toggle source
# File lib/midtrans_api/api/base.rb, line 18
def initialize(client)
  @client = client
end