class EventStoreClient::HTTP::RequestMethod
Constants
- InvalidMethodError
- SUPPORTED_METHODS
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/event_store_client/adapters/http/request_method.rb, line 21 def initialize(name) raise InvalidMethodError unless SUPPORTED_METHODS.include?(name.to_s) @name = name.to_s end
Public Instance Methods
==(other)
click to toggle source
# File lib/event_store_client/adapters/http/request_method.rb, line 7 def ==(other) name == other.to_s end
to_s()
click to toggle source
# File lib/event_store_client/adapters/http/request_method.rb, line 11 def to_s name end