Class: Chef::Provisioning::GoogleDriver::Client::Operation
- Inherits:
-
Object
- Object
- Chef::Provisioning::GoogleDriver::Client::Operation
- Defined in:
- lib/chef/provisioning/google_driver/client/operation.rb
Instance Method Summary collapse
- #done? ⇒ Boolean
-
#initialize(response) ⇒ Operation
constructor
A new instance of Operation.
- #name ⇒ Object
Constructor Details
#initialize(response) ⇒ Operation
Returns a new instance of Operation.
7 8 9 |
# File 'lib/chef/provisioning/google_driver/client/operation.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#done? ⇒ Boolean
15 16 17 |
# File 'lib/chef/provisioning/google_driver/client/operation.rb', line 15 def done? @response[:body][:status] == "DONE" end |
#name ⇒ Object
11 12 13 |
# File 'lib/chef/provisioning/google_driver/client/operation.rb', line 11 def name @response[:body][:name] end |