Class: CloudAlign::Membership
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- CloudAlign::Membership
- Defined in:
- lib/cloudalign/membership.rb
Instance Attribute Summary collapse
-
#project_role ⇒ Object
Returns the value of attribute project_role.
Attributes inherited from BaseEntity
Class Method Summary collapse
Methods inherited from BaseEntity
Constructor Details
This class inherits a constructor from CloudAlign::BaseEntity
Instance Attribute Details
#project_role ⇒ Object
Returns the value of attribute project_role.
3 4 5 |
# File 'lib/cloudalign/membership.rb', line 3 def project_role @project_role end |
Class Method Details
.find_memberships(project_id) ⇒ Object
6 7 8 9 10 |
# File 'lib/cloudalign/membership.rb', line 6 def find_memberships(project_id) Client.get_json("/projects/#{project_id}/memberships").map do |row| Membership.new(row) end end |