Class: Cronjob::Client
- Inherits:
-
Object
- Object
- Cronjob::Client
- Defined in:
- lib/cronjob/client.rb
Constant Summary collapse
- DEFAULT_API_URL =
URL + API_VERSION
Instance Attribute Summary collapse
-
#conn ⇒ Object
Returns the value of attribute conn.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
8 9 10 |
# File 'lib/cronjob/client.rb', line 8 def initialize @conn = Faraday.new(url: DEFAULT_API_URL) end |
Instance Attribute Details
#conn ⇒ Object
Returns the value of attribute conn.
6 7 8 |
# File 'lib/cronjob/client.rb', line 6 def conn @conn end |