Class: TeamsIncomingClients::PostResult
- Inherits:
-
Object
- Object
- TeamsIncomingClients::PostResult
- Defined in:
- lib/teams_incoming_clients/models/post_result.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
- #fail? ⇒ Boolean
-
#initialize(result, reason, message) ⇒ PostResult
constructor
A new instance of PostResult.
- #ok? ⇒ Boolean
Constructor Details
#initialize(result, reason, message) ⇒ PostResult
Returns a new instance of PostResult.
5 6 7 8 9 |
# File 'lib/teams_incoming_clients/models/post_result.rb', line 5 def initialize(result, reason, ) @result = result @reason = reason @message = .to_s end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/teams_incoming_clients/models/post_result.rb', line 3 def @message end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
3 4 5 |
# File 'lib/teams_incoming_clients/models/post_result.rb', line 3 def reason @reason end |
Instance Method Details
#fail? ⇒ Boolean
15 16 17 |
# File 'lib/teams_incoming_clients/models/post_result.rb', line 15 def fail? !result end |
#ok? ⇒ Boolean
11 12 13 |
# File 'lib/teams_incoming_clients/models/post_result.rb', line 11 def ok? !!result end |