Class: Clouddns::Actions::GenericAction

Inherits:
Object
  • Object
show all
Defined in:
lib/clouddns/actions/generic_action.rb

Direct Known Subclasses

Migrate, Print, Zonefile

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zone, options = {}) ⇒ GenericAction

Returns a new instance of GenericAction.



4
5
6
7
# File 'lib/clouddns/actions/generic_action.rb', line 4

def initialize zone, options = {}
  @zone = zone
  @options = options
end

Class Method Details

.run(zone, options = {}) ⇒ Object



8
9
10
# File 'lib/clouddns/actions/generic_action.rb', line 8

def self.run zone, options = {}
  new(zone, options).run
end