Class: SmoothOperator::ProtocolHandler

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/smooth_operator/protocol_handler.rb

Class Method Summary collapse

Class Method Details

.delete_options(options) ⇒ Object



21
22
23
# File 'lib/smooth_operator/protocol_handler.rb', line 21

def self.delete_options(options)
  { body: options }
end

.get_options(options) ⇒ Object



9
10
11
# File 'lib/smooth_operator/protocol_handler.rb', line 9

def self.get_options(options)
  { query: options }
end

.post_options(options) ⇒ Object



13
14
15
# File 'lib/smooth_operator/protocol_handler.rb', line 13

def self.post_options(options)
  { body: options }
end

.put_options(options) ⇒ Object



17
18
19
# File 'lib/smooth_operator/protocol_handler.rb', line 17

def self.put_options(options)
  { body: options }
end