Sha256: 9f3a3869defe06b63c702e54f89377ffafab00dd0380891f92e37e225242d167

Contents?: true

Size: 397 Bytes

Versions: 14

Compression:

Stored size: 397 Bytes

Contents

module Beatport
  module Catalog
    class AccountType < Item
      has_one :images, Images
      
      # Returns the account type with the name given
      def self.find(key)
        Client.retrieve 'account-types', AccountType, :key => key
      end
      
      # Returns all the account types
      def self.all
        Client.retrieve 'account-types', AccountType
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
beatport-0.4.0 lib/beatport/catalog/account_type.rb
beatport-0.3.0 lib/beatport/catalog/account_type.rb
beatport-0.2.3 lib/beatport/catalog/account_type.rb
beatport-0.2.2 lib/beatport/catalog/account_type.rb
beatport-0.2.1 lib/beatport/catalog/account_type.rb
beatport-0.2.0 lib/beatport/catalog/account_type.rb
beatport-0.1.10 lib/beatport/catalog/account_type.rb
beatport-0.1.9 lib/beatport/catalog/account_type.rb
beatport-0.1.8 lib/beatport/catalog/account_type.rb
beatport-0.1.7 lib/beatport/catalog/account_type.rb
beatport-0.1.6 lib/beatport/catalog/account_type.rb
beatport-0.1.5 lib/beatport/catalog/account_type.rb
beatport-0.1.3 lib/beatport/catalog/account_type.rb
beatport-0.1.2 lib/beatport/catalog/account_type.rb