Class: Brio::Resources::NullResource
- Inherits:
-
Object
- Object
- Brio::Resources::NullResource
- Defined in:
- lib/brio/resources/resource.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(data) ⇒ NullResource
constructor
A new instance of NullResource.
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
#text ⇒ Object (readonly)
Returns the value of attribute text.
26 27 28 |
# File 'lib/brio/resources/resource.rb', line 26 def text @text end |