Class: Nuker::Commands::Base
- Inherits:
-
Object
- Object
- Nuker::Commands::Base
show all
- Defined in:
- lib/nuker/commands/base.rb
Instance Method Summary
collapse
Instance Method Details
#resource(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/nuker/commands/base.rb', line 8
def resource(options = {})
options[:headers] = { :client_version => Nuker::Client::Version::STRING }
Nuker::RestResource.new(url, options)
end
|
#url ⇒ Object
13
14
15
|
# File 'lib/nuker/commands/base.rb', line 13
def url
Nuker::Client::Config.url
end
|