Class: Brio::Resources::NullResource

Inherits:
Object
  • Object
show all
Defined in:
lib/brio/resources/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ NullResource

Returns a new instance of NullResource.



28
29
30
# File 'lib/brio/resources/resource.rb', line 28

def initialize( data )
  @text = "#{data['code']} - #{data['error_message']}"
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



26
27
28
# File 'lib/brio/resources/resource.rb', line 26

def text
  @text
end