Class: Dozenscli::Create
- Inherits:
-
Thor
- Object
- Thor
- Dozenscli::Create
- Defined in:
- lib/dozenscli/command.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Create
constructor
A new instance of Create.
- #record ⇒ Object
- #zone ⇒ Object
Constructor Details
Instance Method Details
#record ⇒ Object
36 37 38 |
# File 'lib/dozenscli/command.rb', line 36 def record puts JSON.pretty_generate(@api.create_record([:params])) end |
#zone ⇒ Object
30 31 32 |
# File 'lib/dozenscli/command.rb', line 30 def zone puts JSON.pretty_generate(@api.create_zone([:name])) end |