Class: Balanced::Marketplace
- Inherits:
-
Object
- Object
- Balanced::Marketplace
- 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
-
.mine ⇒ Marketplace
Returns an instance representing the marketplace associated with the current API key.
-
.my_marketplace ⇒ Marketplace
Returns an instance representing the marketplace associated with the current API key.
Instance Method Summary collapse
-
#my_marketplace ⇒ Marketplace
(also: #mine)
Returns an instance representing the marketplace associated with the current API key.
Methods included from HypermediaRegistry
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
.mine ⇒ Marketplace
Returns an instance representing the marketplace associated with the current API key.
20 21 22 |
# File 'lib/balanced/resources/marketplace.rb', line 20 def my_marketplace Balanced::Marketplace.where.first end |
.my_marketplace ⇒ Marketplace
Returns an instance representing the marketplace associated with the current API key.
16 17 18 |
# File 'lib/balanced/resources/marketplace.rb', line 16 def my_marketplace Balanced::Marketplace.where.first end |
Instance Method Details
#my_marketplace ⇒ Marketplace Also known as: mine
Returns an instance representing the marketplace associated with the current API key.
28 29 30 |
# File 'lib/balanced/resources/marketplace.rb', line 28 def my_marketplace self.class.my_marketplace end |