Class: KooKoo::KooKooML::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/kookoo-gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Response

Returns a new instance of Response.



9
10
11
12
13
# File 'lib/kookoo-gem.rb', line 9

def initialize(&block)
  xml = Builder::XmlMarkup.new
  xml.instruct!
  @text = xml.Response &block
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



7
8
9
# File 'lib/kookoo-gem.rb', line 7

def text
  @text
end