Class: Tidas::SuccessfulResult
- Inherits:
-
Object
- Object
- Tidas::SuccessfulResult
- Defined in:
- lib/tidas/successful_result.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#tidas_id ⇒ Object
readonly
Returns the value of attribute tidas_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SuccessfulResult
constructor
:nodoc:.
- #success? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ SuccessfulResult
:nodoc:
6 7 8 9 10 |
# File 'lib/tidas/successful_result.rb', line 6 def initialize(attributes = {}) # :nodoc: @tidas_id = attributes[:tidas_id] @data = attributes[:data] = attributes[:message] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/tidas/successful_result.rb', line 4 def data @data end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/tidas/successful_result.rb', line 4 def end |
#tidas_id ⇒ Object (readonly)
Returns the value of attribute tidas_id.
4 5 6 |
# File 'lib/tidas/successful_result.rb', line 4 def tidas_id @tidas_id end |
Instance Method Details
#success? ⇒ Boolean
12 13 14 |
# File 'lib/tidas/successful_result.rb', line 12 def success? true end |