class CzechPostB2bClient::ResponseCodes::BaseCode

Attributes

code[R]
description[R]
text[R]
type[R]
details[R]

Public Class Methods

error?() click to toggle source
# File lib/czech_post_b2b_client/response_codes.rb, line 31
def self.error?
  @type == :error || @type == :chyba
end
info?() click to toggle source
# File lib/czech_post_b2b_client/response_codes.rb, line 35
def self.info?
  @type == :info
end
new(details = '') click to toggle source
# File lib/czech_post_b2b_client/response_codes.rb, line 27
def initialize(details = '')
  @details = details
end
to_s() click to toggle source
# File lib/czech_post_b2b_client/response_codes.rb, line 43
def self.to_s
  "ResponseCode[#{code} #{text}] #{description}"
end

Public Instance Methods

to_s() click to toggle source
# File lib/czech_post_b2b_client/response_codes.rb, line 47
def to_s
  "#{self.class} -- #{details}"
end