Class: CopperEgg::Api
- Inherits:
-
Object
- Object
- CopperEgg::Api
- Defined in:
- lib/copperegg/api.rb
Class Attribute Summary collapse
-
.apikey ⇒ Object
Returns the value of attribute apikey.
-
.ssl_verify_peer ⇒ Object
Returns the value of attribute ssl_verify_peer.
-
.timeout ⇒ Object
Returns the value of attribute timeout.
Class Method Summary collapse
Class Attribute Details
.apikey ⇒ Object
Returns the value of attribute apikey.
4 5 6 |
# File 'lib/copperegg/api.rb', line 4 def apikey @apikey end |
.ssl_verify_peer ⇒ Object
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 |
.timeout ⇒ Object
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 |
.uri ⇒ Object
11 12 13 |
# File 'lib/copperegg/api.rb', line 11 def uri @uri || "https://api.copperegg.com/v2/revealmetrics/" end |