We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f5a13 commit d9cf3b2Copy full SHA for d9cf3b2
lib/zendesk_api/resources.rb
@@ -16,6 +16,20 @@ class Locale < ReadResource; end
16
17
class CustomRole < DataResource; end
18
19
+ # client.agent_availabilities.fetch
20
+ # client.agent_availabilities.find 20401208368
21
+ # both return consistently - ZendeskAPI::AgentAvailability
22
+ class AgentAvailability < DataResource
23
+ def self.model_key
24
+ "data"
25
+ end
26
+
27
+ def self.find(client, id, *args)
28
+ attributes = client.connection.get("#{resource_path}/#{id}").body.fetch(model_key, {})
29
+ new(client, attributes)
30
31
32
33
class Role < DataResource
34
def to_param
35
name
0 commit comments