Class: GSGraph::FriendRequest
- Inherits:
-
Object
- Object
- GSGraph::FriendRequest
- Includes:
- Comparison
- Defined in:
- lib/gs_graph/friend_request.rb
Instance Attribute Summary collapse
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#from ⇒ Object
Returns the value of attribute from.
-
#message ⇒ Object
Returns the value of attribute message.
-
#to ⇒ Object
Returns the value of attribute to.
-
#unread ⇒ Object
Returns the value of attribute unread.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FriendRequest
constructor
A new instance of FriendRequest.
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ FriendRequest
Returns a new instance of FriendRequest.
6 7 8 9 10 11 12 |
# File 'lib/gs_graph/friend_request.rb', line 6 def initialize(attributes = {}) @from = User.new attributes[:from] @to = User.new attributes[:to] @created_time = Time.parse attributes[:created_time] @message = attributes[:message] @unread = attributes[:unread] end |
Instance Attribute Details
#created_time ⇒ Object
Returns the value of attribute created_time.
4 5 6 |
# File 'lib/gs_graph/friend_request.rb', line 4 def created_time @created_time end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/gs_graph/friend_request.rb', line 4 def from @from end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/gs_graph/friend_request.rb', line 4 def @message end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'lib/gs_graph/friend_request.rb', line 4 def to @to end |
#unread ⇒ Object
Returns the value of attribute unread.
4 5 6 |
# File 'lib/gs_graph/friend_request.rb', line 4 def unread @unread end |