class HomeAway::API::Errors::HomeAwayAPIError
@private
Attributes
response[R]
Public Class Methods
method_missing(name, *args, &block)
click to toggle source
@private
Calls superclass method
# File lib/homeaway/api/errors/ha_api_errors.rb, line 50 def self.method_missing(name, *args, &block) if @response.respond_to? name @response.send name else super end end
new(response=nil)
click to toggle source
@private
# File lib/homeaway/api/errors/ha_api_errors.rb, line 27 def initialize(response=nil) @response = response end
Public Instance Methods
to_s()
click to toggle source
@private
Calls superclass method
# File lib/homeaway/api/errors/ha_api_errors.rb, line 32 def to_s begin buf = "#{self.class.name} #{@response._metadata.status_code} " @response.violations.each do |violation| buf << "#{violation.description} | " end buf = buf[0..-3] unless @response.violations.empty? return buf rescue if @response.nil? super else @response.to_s end end end