Class: CopperEgg::Api

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.apikeyObject

Returns the value of attribute apikey.



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

def apikey
  @apikey
end

.ssl_verify_peerObject

Returns the value of attribute ssl_verify_peer.



5
6
7
# File 'lib/copperegg/api.rb', line 5

def ssl_verify_peer
  @ssl_verify_peer
end

.timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/copperegg/api.rb', line 5

def timeout
  @timeout
end

Class Method Details

.host=(host) ⇒ Object



7
8
9
# File 'lib/copperegg/api.rb', line 7

def host=(host)
	@uri = URI.join(host, "/v2/revealmetrics/").to_s
end

.uriObject



11
12
13
# File 'lib/copperegg/api.rb', line 11

def uri
	@uri || "https://api.copperegg.com/v2/revealmetrics/"
end