Class: Asana::Resources::WorkspaceMembership

Inherits:
WorkspaceMembershipsBase show all
Defined in:
lib/asana/resources/workspace_membership.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from WorkspaceMembershipsBase

get_workspace_membership, get_workspace_memberships_for_user, get_workspace_memberships_for_workspace, 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/workspace_membership.rb', line 8

def gid
  @gid
end

#is_activeObject (readonly)



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

def is_active
  @is_active
end

#is_adminObject (readonly)



18
19
20
# File 'lib/asana/resources/workspace_membership.rb', line 18

def is_admin
  @is_admin
end

#is_guestObject (readonly)



22
23
24
# File 'lib/asana/resources/workspace_membership.rb', line 22

def is_guest
  @is_guest
end

#resource_typeObject (readonly)



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

def resource_type
  @resource_type
end

#userObject (readonly)



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

def user
  @user
end

#user_task_listObject (readonly)



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

def user_task_list
  @user_task_list
end

#workspaceObject (readonly)



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

def workspace
  @workspace
end

Class Method Details

.plural_nameObject

Returns the plural name of the resource.



26
27
28
# File 'lib/asana/resources/workspace_membership.rb', line 26

def plural_name
  'workspace_memberships'
end