Class: MoonropeClient::Responses::Success

Inherits:
MoonropeClient::Response show all
Defined in:
lib/moonrope_client/responses/success.rb

Direct Known Subclasses

PaginatedCollection

Instance Method Summary collapse

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.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    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

Returns:

  • (Boolean)


5
6
7
# File 'lib/moonrope_client/responses/success.rb', line 5

def success?
  true
end