Class: SBF::Client::Entity::Errors

Inherits:
ActiveModel::Errors
  • Object
show all
Defined in:
lib/stbaldricks/entities/lib/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, http_code = nil) ⇒ Errors

Returns a new instance of Errors.



56
57
58
59
# File 'lib/stbaldricks/entities/lib/error.rb', line 56

def initialize(obj, http_code = nil)
  super(obj)
  @http_code = http_code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



54
55
56
# File 'lib/stbaldricks/entities/lib/error.rb', line 54

def code
  @code
end

#http_codeObject (readonly)

Returns the value of attribute http_code.



54
55
56
# File 'lib/stbaldricks/entities/lib/error.rb', line 54

def http_code
  @http_code
end

#typeObject (readonly)

Returns the value of attribute type.



54
55
56
# File 'lib/stbaldricks/entities/lib/error.rb', line 54

def type
  @type
end