Class: Myrando::RandoConnection

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

Instance Method Summary collapse

Constructor Details

#initializeRandoConnection

Returns a new instance of RandoConnection.



12
13
# File 'lib/myrando.rb', line 12

def initialize()
end

Instance Method Details

#get(path) ⇒ Object



15
16
17
18
# File 'lib/myrando.rb', line 15

def get(path)
  opts = { :headers => { 'User-Agent' => "myrando/#{Myrando::VERSION}" } }
  return self.class.get(path, opts)
end

#post(path, body) ⇒ Object



20
21
22
23
# File 'lib/myrando.rb', line 20

def post(path, body)
  opts = { :body => body, :headers => { 'User-Agent' => "myrando/#{Myrando::VERSION}" } }
  return self.class.post(path, opts)
end