Class: Cuenote::Api::Command
- Inherits:
-
Object
- Object
- Cuenote::Api::Command
- Defined in:
- lib/cuenote/api/command.rb
Instance Method Summary collapse
- #build(id) ⇒ Object
- #builder ⇒ Object
-
#initialize(command, params = {}) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(command, params = {}) ⇒ Command
Returns a new instance of Command.
5 6 7 |
# File 'lib/cuenote/api/command.rb', line 5 def initialize(command, params={}) @command, @params = [command, params] end |
Instance Method Details
#build(id) ⇒ Object
13 14 15 |
# File 'lib/cuenote/api/command.rb', line 13 def build(id) build_command @command, id, @params end |
#builder ⇒ Object
9 10 11 |
# File 'lib/cuenote/api/command.rb', line 9 def builder @builder ||= ::Builder::XmlMarkup.new end |