Class: Bamboozled::API::Meta

Inherits:
Base
  • Object
show all
Defined in:
lib/bamboozled/api/meta.rb

Instance Attribute Summary

Attributes inherited from Base

#api_key, #subdomain

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Bamboozled::API::Base

Instance Method Details

#fieldsObject



8
9
10
# File 'lib/bamboozled/api/meta.rb', line 8

def fields
  request(:get, "meta/fields")
end

#listsObject



12
13
14
# File 'lib/bamboozled/api/meta.rb', line 12

def lists
  request(:get, "meta/lists")
end

#tablesObject



16
17
18
19
20
# File 'lib/bamboozled/api/meta.rb', line 16

def tables
  request(
    :get, "meta/tables",
    typecast_values: false)
end

#time_off_policiesObject



26
27
28
29
30
31
# File 'lib/bamboozled/api/meta.rb', line 26

def time_off_policies
  options = {
    headers: { "Content-Type" => "application/json" }
  }
  request(:get, "meta/time_off/policies", options)
end

#time_off_typesObject



22
23
24
# File 'lib/bamboozled/api/meta.rb', line 22

def time_off_types
  request(:get, "meta/time_off/types")
end

#usersObject



4
5
6
# File 'lib/bamboozled/api/meta.rb', line 4

def users
  request(:get, "meta/users").values
end