Class: Fog::DNS::Google::Change

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/google/models/dns/change.rb

Overview

Represents a Change resource

Constant Summary collapse

DONE_STATE =
'done'
PENDING_STATE =
'pending'

Instance Method Summary collapse

Instance Method Details

#pending?Boolean

Checks if the change operation is pending

Returns:

  • (Boolean)

    True if the change operation is pending; False otherwise



26
27
28
# File 'lib/fog/google/models/dns/change.rb', line 26

def pending?
  self.status == PENDING_STATE
end

#ready?Boolean

Checks if the change operation is done

Returns:

  • (Boolean)

    True if the change operation is done; False otherwise



34
35
36
# File 'lib/fog/google/models/dns/change.rb', line 34

def ready?
  self.status == DONE_STATE
end