class VatInfo::Response

Attributes

body[RW]
raw[RW]
status_code[RW]

Public Class Methods

new(status_code:, body: {}, raw: {}) click to toggle source
# File lib/vat_info/response.rb, line 5
def initialize(status_code:, body: {}, raw: {})
  @status_code = status_code
  @body        = body
  @raw         = raw
end

Public Instance Methods

ok?() click to toggle source
# File lib/vat_info/response.rb, line 11
def ok?
  status_code == 200
end