Class: Fathom::Team

Inherits:
Resource show all
Defined in:
lib/fathom/resources/team.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #rate_limit_info

Class Method Summary collapse

Instance Method Summary collapse

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_pathObject



5
# File 'lib/fathom/resources/team.rb', line 5

def self.resource_path = "teams"

Instance Method Details

#created_atObject

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))

#nameObject

Get the team name



12
# File 'lib/fathom/resources/team.rb', line 12

def name = self["name"]