Class: BigPanda::Client

Inherits:
Object
  • Object
show all
Includes:
Connection, Deployment, Request, Helper
Defined in:
lib/big_panda/client.rb,
lib/big_panda/client/errors.rb,
lib/big_panda/client/request.rb,
lib/big_panda/client/connection.rb,
lib/big_panda/client/deployment.rb

Defined Under Namespace

Modules: Connection, Deployment, Request Classes: Unauthorized

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Deployment

#finish_deployment, #start_deployment

Methods included from Request

#post

Methods included from Helper

#check_mandatory_options

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



15
16
17
18
19
20
21
22
# File 'lib/big_panda/client.rb', line 15

def initialize(options={})
  @target_url = BigPanda::DEFAULT_TARGET_URL

  mandatory_options = [ :access_token ]
  check_mandatory_options(options, mandatory_options)
  @access_token = options[:access_token]
  @ssl = options[:ssl] ? options[:ssl] : {}
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



13
14
15
# File 'lib/big_panda/client.rb', line 13

def access_token
  @access_token
end

#sslObject (readonly)

Returns the value of attribute ssl.



13
14
15
# File 'lib/big_panda/client.rb', line 13

def ssl
  @ssl
end

#target_urlObject (readonly)

Returns the value of attribute target_url.



13
14
15
# File 'lib/big_panda/client.rb', line 13

def target_url
  @target_url
end