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

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

Overview

Represents a Change resource

Constant Summary collapse

DONE_STATE =
"done".freeze
PENDING_STATE =
"pending".freeze

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



24
25
26
# File 'lib/fog/dns/google/models/change.rb', line 24

def pending?
  status == PENDING_STATE
end

#ready?Boolean

Checks if the change operation is done

Returns:

  • (Boolean)

    True if the change operation is done; False otherwise



32
33
34
# File 'lib/fog/dns/google/models/change.rb', line 32

def ready?
  status == DONE_STATE
end