Class: Cronjob::Client

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

Constant Summary collapse

DEFAULT_API_URL =
URL + API_VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

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

#connObject

Returns the value of attribute conn.



6
7
8
# File 'lib/cronjob/client.rb', line 6

def conn
  @conn
end