Class: Beatport::Catalog::AccountType
- Defined in:
- lib/beatport/catalog/account_type.rb
Class Method Summary collapse
-
.all ⇒ Object
Returns all the account types.
-
.find(key) ⇒ Object
Returns the account type with the name given.
Methods inherited from Item
#[], #associate, associations, find_by_name, has_many, has_one, #id, #initialize, lazy_accessor, #type
Constructor Details
This class inherits a constructor from Beatport::Item
Class Method Details
.all ⇒ Object
Returns all the account types
12 13 14 |
# File 'lib/beatport/catalog/account_type.rb', line 12 def self.all Client.retrieve 'account-types', AccountType end |
.find(key) ⇒ Object
Returns the account type with the name given
7 8 9 |
# File 'lib/beatport/catalog/account_type.rb', line 7 def self.find(key) Client.retrieve 'account-types', AccountType, :key => key end |