class Finix::Errors

Attributes

code[R]
total[R]

Public Class Methods

new(response=nil) click to toggle source
# File lib/finix/errors.rb, line 9
def initialize(response=nil)
  @code = response[:status].to_i
  @total = response[:body]['total'].to_i

  load_page_from_response! response
  @attributes['errors'] = @attributes.delete 'items'
  @attributes.delete 'page'
end

Public Instance Methods

to_s() click to toggle source
# File lib/finix/errors.rb, line 18
def to_s
  "#{@errors}"
end