Class: Timepad::Category

Inherits:
Base
  • Object
show all
Defined in:
lib/timepad/category.rb

Instance Method Summary collapse

Methods inherited from Base

#make_query, #make_uri, #request, #subscribers_to_hash

Constructor Details

#initialize(timepad_client) ⇒ Category

Returns a new instance of Category.



3
4
5
# File 'lib/timepad/category.rb', line 3

def initialize(timepad_client)
  @client = timepad_client
end

Instance Method Details

#get_listArray

Get all categories

Returns:

  • (Array)


11
12
13
# File 'lib/timepad/category.rb', line 11

def get_list
  request 'getlist'
end