Class: Spaceship::PortalBase

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


4
5
6
7
8
9
10
# File 'lib/spaceship/portal/portal_base.rb', line 4

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