Class: Chef::Provisioning::GoogleDriver::Client::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/provisioning/google_driver/client/operation.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/chef/provisioning/google_driver/client/operation.rb', line 15

def done?
  @response[:body][:status] == "DONE"
end

#nameObject



11
12
13
# File 'lib/chef/provisioning/google_driver/client/operation.rb', line 11

def name
  @response[:body][:name]
end