Class: GSGraph::Role

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/gs_graph/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Role

Returns a new instance of Role.



7
8
9
10
11
# File 'lib/gs_graph/role.rb', line 7

def initialize(attributes = {})
  @role = attributes[:role]
  @user = User.new attributes[:user]
  @application = Application.new attributes[:app_id]
end

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



5
6
7
# File 'lib/gs_graph/role.rb', line 5

def application
  @application
end

#roleObject

Returns the value of attribute role.



5
6
7
# File 'lib/gs_graph/role.rb', line 5

def role
  @role
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/gs_graph/role.rb', line 5

def user
  @user
end