Class: Bitstampede::Net

Inherits:
Object
  • Object
show all
Defined in:
lib/bitstampede/net.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Net

Returns a new instance of Net.



7
8
9
# File 'lib/bitstampede/net.rb', line 7

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/bitstampede/net.rb', line 5

def client
  @client
end

Instance Method Details

#keyObject



15
16
17
# File 'lib/bitstampede/net.rb', line 15

def key
  client.key
end

#post(endpoint, options = {}) ⇒ Object



19
20
21
# File 'lib/bitstampede/net.rb', line 19

def post(endpoint, options={})
  map_response(raw_post(endpoint, options))
end

#secretObject



11
12
13
# File 'lib/bitstampede/net.rb', line 11

def secret
  client.secret
end