Class: Cuenote::Api::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/cuenote/api/command.rb

Instance Method Summary collapse

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

#builderObject



9
10
11
# File 'lib/cuenote/api/command.rb', line 9

def builder
  @builder ||= ::Builder::XmlMarkup.new
end