Class: Spaceship::Tunes::TunesBase

Inherits:
Base
  • Object
show all
Defined in:
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, #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



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

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