Class: ApiBucket::Base::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/api_bucket/base/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Response

Returns a new instance of Response.



7
8
9
10
# File 'lib/api_bucket/base/response.rb', line 7

def initialize(xml)
  @doc = Nokogiri::XML(xml, nil, 'UTF-8')
  @doc.remove_namespaces!
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



5
6
7
# File 'lib/api_bucket/base/response.rb', line 5

def count
  @count
end

#pageObject

Returns the value of attribute page.



5
6
7
# File 'lib/api_bucket/base/response.rb', line 5

def page
  @page
end

Instance Method Details

#docObject



12
13
14
# File 'lib/api_bucket/base/response.rb', line 12

def doc
  @doc
end

#dumpObject



16
17
18
# File 'lib/api_bucket/base/response.rb', line 16

def dump
  @doc.to_s
end