Class: Listo::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/listo/client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#certObject (readonly)

Returns the value of attribute cert.



8
9
10
# File 'lib/listo/client.rb', line 8

def cert
  @cert
end

#cert_fileObject

Returns the value of attribute cert_file.



10
11
12
# File 'lib/listo/client.rb', line 10

def cert_file
  @cert_file
end

#connectionObject (readonly)

Returns the value of attribute connection.



8
9
10
# File 'lib/listo/client.rb', line 8

def connection
  @connection
end

#pkeyObject (readonly)

Returns the value of attribute pkey.



8
9
10
# File 'lib/listo/client.rb', line 8

def pkey
  @pkey
end

#pkey_fileObject

Returns the value of attribute pkey_file.



10
11
12
# File 'lib/listo/client.rb', line 10

def pkey_file
  @pkey_file
end

#pkey_passphraseObject

Returns the value of attribute pkey_passphrase.



10
11
12
# File 'lib/listo/client.rb', line 10

def pkey_passphrase
  @pkey_passphrase
end

#tokenObject

Returns the value of attribute token.



10
11
12
# File 'lib/listo/client.rb', line 10

def token
  @token
end

Class Method Details

.configure {|@client = new| ... } ⇒ Object

Yields:

  • (@client = new)


22
23
24
25
26
# File 'lib/listo/client.rb', line 22

def self.configure(&config)
  yield @client = new

  @client
end

.currentObject



18
19
20
# File 'lib/listo/client.rb', line 18

def self.current
  @client
end