Class: Fathom::Team
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
-
#created_at ⇒ Object
Get the created_at timestamp.
-
#members(params = {}) ⇒ Object
Get all members of this team by filtering by team name Note: Requires the team to have a ‘name’ attribute.
-
#name ⇒ Object
Get the team name.
Methods inherited from Resource
#[], #[]=, all, client, create, #delete, #id, #initialize, #inspect, #method_missing, #reload, resource_name, #respond_to_missing?, retrieve, search, #to_h, #to_json, #update
Constructor Details
This class inherits a constructor from Fathom::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Fathom::Resource
Class Method Details
.resource_path ⇒ Object
5 |
# File 'lib/fathom/resources/team.rb', line 5 def self.resource_path = "teams" |
Instance Method Details
#created_at ⇒ Object
Get the created_at timestamp
15 |
# File 'lib/fathom/resources/team.rb', line 15 def created_at = self["created_at"] |
#members(params = {}) ⇒ Object
Get all members of this team by filtering by team name Note: Requires the team to have a ‘name’ attribute
9 |
# File 'lib/fathom/resources/team.rb', line 9 def members(params = {}) = TeamMember.all(params.merge(team: name)) |
#name ⇒ Object
Get the team name
12 |
# File 'lib/fathom/resources/team.rb', line 12 def name = self["name"] |