Class: Balanced::Marketplace

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

Instance Attribute Summary

Attributes included from Resource

#attributes, #href, #hyperlinks, #id, #links

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HypermediaRegistry

included

Methods included from Resource

#copy_from, #does_resource_respond_to?, #fetch, #hydrate, included, #initialize, #method_missing, #reload, #respond_to?, #respond_to_missing?, #sanitize, #save, #unstore

Dynamic Method Handling

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

Class Method Details

.mineMarketplace

Returns an instance representing the marketplace associated with the current API key.

Returns:



20
21
22
# File 'lib/balanced/resources/marketplace.rb', line 20

def my_marketplace
  Balanced::Marketplace.where.first
end

.my_marketplaceMarketplace

Returns an instance representing the marketplace associated with the current API key.

Returns:



16
17
18
# File 'lib/balanced/resources/marketplace.rb', line 16

def my_marketplace
  Balanced::Marketplace.where.first
end

Instance Method Details

#my_marketplaceMarketplace Also known as: mine

Returns an instance representing the marketplace associated with the current API key.

Returns:



28
29
30
# File 'lib/balanced/resources/marketplace.rb', line 28

def my_marketplace
  self.class.my_marketplace
end