Class: Spaceship::PortalBase

Inherits:
Base
  • Object
show all
Defined in:
spaceship/lib/spaceship/portal/portal_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



6
7
8
9
10
11
12
13
# File 'spaceship/lib/spaceship/portal/portal_base.rb', line 6

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