Class: DNSimple::Command
- Inherits:
-
Object
- Object
- DNSimple::Command
- Defined in:
- lib/dnsimple/command.rb
Direct Known Subclasses
DNSimple::Commands::AddService, DNSimple::Commands::CreateRecord, DNSimple::Commands::ListRecords, DNSimple::Commands::PurchaseCertificate, DNSimple::Commands::SubmitCertificate
Instance Method Summary collapse
-
#initialize(out = $stdout) ⇒ Command
constructor
A new instance of Command.
- #say(message) ⇒ Object
Constructor Details
#initialize(out = $stdout) ⇒ Command
Returns a new instance of Command.
3 4 5 |
# File 'lib/dnsimple/command.rb', line 3 def initialize(out=$stdout) @out = out end |
Instance Method Details
#say(message) ⇒ Object
6 7 8 |
# File 'lib/dnsimple/command.rb', line 6 def say() @out.write("#{}\n") end |