Class: Asana::Resources::TeamMembership

Inherits:
TeamMembershipsBase show all
Defined in:
lib/asana/resources/team_membership.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from TeamMembershipsBase

get_team_membership, get_team_memberships, get_team_memberships_for_team, get_team_memberships_for_user, inherited

Methods inherited from Resource

#initialize, #method_missing, #refresh, #respond_to_missing?, #to_h, #to_s

Methods included from ResponseHelper

#parse

Constructor Details

This class inherits a constructor from Asana::Resources::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Asana::Resources::Resource

Instance Attribute Details

#gidObject (readonly)


8
9
10
# File 'lib/asana/resources/team_membership.rb', line 8

def gid
  @gid
end

#is_guestObject (readonly)


16
17
18
# File 'lib/asana/resources/team_membership.rb', line 16

def is_guest
  @is_guest
end

#resource_typeObject (readonly)


10
11
12
# File 'lib/asana/resources/team_membership.rb', line 10

def resource_type
  @resource_type
end

#teamObject (readonly)


14
15
16
# File 'lib/asana/resources/team_membership.rb', line 14

def team
  @team
end

#userObject (readonly)


12
13
14
# File 'lib/asana/resources/team_membership.rb', line 12

def user
  @user
end

Class Method Details

.plural_nameObject

Returns the plural name of the resource.


20
21
22
# File 'lib/asana/resources/team_membership.rb', line 20

def plural_name
  'team_memberships'
end