Class: FrameIo::Team
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- FrameIo::Team
- Defined in:
- lib/frame_io/team.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all(account:, client:) ⇒ Object
3 4 5 |
# File 'lib/frame_io/team.rb', line 3 def self.all(account:, client:) client.get_resource("accounts/#{account.id}/teams?include=user_role", object_class: self) end |
.find(id:, client:) ⇒ Object
7 8 9 |
# File 'lib/frame_io/team.rb', line 7 def self.find(id:, client:) client.get_resource("teams/#{id}", object_class: self) end |
Instance Method Details
#custom_actions(cache: true) ⇒ Object
17 18 19 20 21 |
# File 'lib/frame_io/team.rb', line 17 def custom_actions(cache: true) @custom_actions = nil unless cache @custom_actions ||= CustomAction.all(team: self, client:) end |
#projects(cache: true) ⇒ Object
11 12 13 14 15 |
# File 'lib/frame_io/team.rb', line 11 def projects(cache: true) @projects = nil unless cache @projects ||= Project.all(team: self, client:) end |