Class: FbGraph::Role
- Inherits:
-
Object
- Object
- FbGraph::Role
- Includes:
- Comparison
- Defined in:
- lib/fb_graph/role.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#role ⇒ Object
Returns the value of attribute role.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Role
constructor
A new instance of Role.
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ Role
Returns a new instance of Role.
7 8 9 10 11 |
# File 'lib/fb_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
#application ⇒ Object
Returns the value of attribute application.
5 6 7 |
# File 'lib/fb_graph/role.rb', line 5 def application @application end |
#role ⇒ Object
Returns the value of attribute role.
5 6 7 |
# File 'lib/fb_graph/role.rb', line 5 def role @role end |
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/fb_graph/role.rb', line 5 def user @user end |