class Privat24Api::Response

Attributes

body[R]

Public Class Methods

new(body) click to toggle source
# File lib/privat24_api/response/response.rb, line 7
def initialize(body)
  @body = body
end

Public Instance Methods

to_hash() click to toggle source
# File lib/privat24_api/response/response.rb, line 11
def to_hash
  Hash.from_xml(body)
end
to_json() click to toggle source
# File lib/privat24_api/response/response.rb, line 15
def to_json
  Hash.from_xml(body).to_json
end
to_xml() click to toggle source
# File lib/privat24_api/response/response.rb, line 19
def to_xml
  body
end