class Wizypay::MerchantVersion

Public Class Methods

for(merchant) click to toggle source
# File lib/wizypay/merchant_version.rb, line 3
def self.for(merchant)
  for_id(merchant.id)
end
for_id(merchant_id) click to toggle source
# File lib/wizypay/merchant_version.rb, line 7
def self.for_id(merchant_id)
  raw = ApiClient.get("/merchants/#{merchant_id}/versions")
  Collection.new(self, raw[:data], raw[:meta])
end

Public Instance Methods

created_at() click to toggle source
Calls superclass method
# File lib/wizypay/merchant_version.rb, line 16
def created_at
  return nil unless super.present?
  Time.parse(super)
end
merchant() click to toggle source
Calls superclass method
# File lib/wizypay/merchant_version.rb, line 12
def merchant
  Merchant.new(super['data'])
end