Class: Balanced::Merchant

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/balanced/resources/merchant.rb

Instance Attribute Summary

Attributes included from Resource

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Resource

#copy_from, #destroy, #find, included, #initialize, #method_missing, #reload, #save

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Balanced::Resource

Class Method Details

.meMerchant

Returns the Merchant associated with your Marketplace.

Returns:



8
9
10
# File 'lib/balanced/resources/merchant.rb', line 8

def self.me
  self.all.first
end

Instance Method Details

#meMerchant

Returns the Merchant associated with your Marketplace.

Returns:



15
16
17
# File 'lib/balanced/resources/merchant.rb', line 15

def me
  self.class.me
end