Class: Bamboozled::API::Meta
- Inherits:
-
Base
- Object
- Base
- Bamboozled::API::Meta
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
Instance Method Details
#fields ⇒ Object
8
9
10
|
# File 'lib/bamboozled/api/meta.rb', line 8
def fields
request(:get, "meta/fields")
end
|
#lists ⇒ Object
12
13
14
|
# File 'lib/bamboozled/api/meta.rb', line 12
def lists
request(:get, "meta/lists")
end
|
#tables ⇒ Object
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_policies ⇒ Object
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_types ⇒ Object
22
23
24
|
# File 'lib/bamboozled/api/meta.rb', line 22
def time_off_types
request(:get, "meta/time_off/types")
end
|
#users ⇒ Object
4
5
6
|
# File 'lib/bamboozled/api/meta.rb', line 4
def users
request(:get, "meta/users").values
end
|