Class: MoonropeClient::Responses::Success
- Inherits:
-
MoonropeClient::Response
- Object
- MoonropeClient::Response
- MoonropeClient::Responses::Success
- Defined in:
- lib/moonrope_client/responses/success.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#creation? ⇒ Boolean
Whether this is a creation or not.
-
#deletion? ⇒ Boolean
Whether this is a deletion or not.
-
#modification? ⇒ Boolean
Whether this is a modification or not.
- #success? ⇒ Boolean
Methods inherited from MoonropeClient::Response
#data, #exception_message, #flags, #initialize, #status, #time
Constructor Details
This class inherits a constructor from MoonropeClient::Response
Instance Method Details
#creation? ⇒ Boolean
Returns whether this is a creation or not.
12 13 14 |
# File 'lib/moonrope_client/responses/success.rb', line 12 def creation? flags['creation'] end |
#deletion? ⇒ Boolean
Returns whether this is a deletion or not.
26 27 28 |
# File 'lib/moonrope_client/responses/success.rb', line 26 def deletion? flags['deletion'] end |
#modification? ⇒ Boolean
Returns whether this is a modification or not.
19 20 21 |
# File 'lib/moonrope_client/responses/success.rb', line 19 def modification? flags['modification'] end |
#success? ⇒ Boolean
5 6 7 |
# File 'lib/moonrope_client/responses/success.rb', line 5 def success? true end |