Class: Runciter::App
- Inherits:
-
Object
- Object
- Runciter::App
- Defined in:
- lib/runciter/app.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(name, endpoint, opts = {}) ⇒ App
constructor
A new instance of App.
- #task(name, opts = {}, &block) ⇒ Object
Constructor Details
#initialize(name, endpoint, opts = {}) ⇒ App
Returns a new instance of App.
6 7 8 9 10 11 12 13 14 |
# File 'lib/runciter/app.rb', line 6 def initialize(name, endpoint, opts = {}) @name = name @endpoint = URI(endpoint) @opts = opts @api = Jimson::Client.new(endpoint) register! end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
3 4 5 |
# File 'lib/runciter/app.rb', line 3 def api @api end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/runciter/app.rb', line 3 def id @id end |