Class: Spaceship::Tunes::TunesBase

Inherits:
Base
  • Object
show all
Defined in:
spaceship/lib/spaceship/tunes/tunes_base.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #raw_data

Class Method Summary collapse

Methods inherited from Base

attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s

Constructor Details

This class inherits a constructor from Spaceship::Base

Class Method Details

.clientObject



7
8
9
10
11
12
13
# File 'spaceship/lib/spaceship/tunes/tunes_base.rb', line 7

def client
  (
    @client or
    Spaceship::Tunes.client or
    raise "Please login using `Spaceship::Tunes.login('user', 'password')`"
  )
end