Class: CaVirtex::API::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, api_secret) ⇒ Client

Returns a new instance of Client.



6
7
8
9
# File 'lib/ca_virtex/api/client.rb', line 6

def initialize(api_key, api_secret)
  @public = CaVirtex::API::Public.new
  @private = CaVirtex::API::Private.new(api_key, api_secret)
end

Instance Attribute Details

#privateObject (readonly)

Returns the value of attribute private.



4
5
6
# File 'lib/ca_virtex/api/client.rb', line 4

def private
  @private
end

#publicObject (readonly)

Returns the value of attribute public.



4
5
6
# File 'lib/ca_virtex/api/client.rb', line 4

def public
  @public
end