Class: Kontakt::Venue

Inherits:
Auth show all
Defined in:
lib/kontakt.rb

Instance Attribute Summary

Attributes inherited from Configuration

#key

Class Method Summary collapse

Methods inherited from Auth

make_request

Methods inherited from Configuration

#initialize

Constructor Details

This class inherits a constructor from Kontakt::Configuration

Class Method Details

.create(name, description, options = {}) ⇒ Object



55
56
57
# File 'lib/kontakt.rb', line 55

def self.create(name, description, options = {})
  return JSON.parse(make_request('post', '/venue/create', {}, {:name => name, :description => description}.merge(options)).body)
end

.listObject

> Venues



51
52
53
# File 'lib/kontakt.rb', line 51

def self.list
  return JSON.parse(make_request('get', '/venue').body)
end