Class: Chiketto::Organizer

Inherits:
Resource show all
Defined in:
lib/chiketto/organizer.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

Class Method Summary collapse

Methods inherited from Resource

endpoint, get, #initialize, legacy_endpoint, open_post, post, query, token

Methods included from AttrDSL

included

Constructor Details

This class inherits a constructor from Chiketto::Resource

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/chiketto/organizer.rb', line 3

def name
  @name
end

Class Method Details

.create(params) ⇒ Object



7
8
9
10
11
12
# File 'lib/chiketto/organizer.rb', line 7

def self.create(params)
  response = Organizer.post 'organizer_new', params
  if response.fetch('process', false)
    response['process']['id']
  end
end