Class: FbGraph::Video
- Includes:
- Connections::Comments
- Defined in:
- lib/fb_graph/video.rb
Instance Attribute Summary collapse
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#description ⇒ Object
Returns the value of attribute description.
-
#from ⇒ Object
Returns the value of attribute from.
-
#length ⇒ Object
Returns the value of attribute length.
-
#message ⇒ Object
Returns the value of attribute message.
-
#updated_time ⇒ Object
Returns the value of attribute updated_time.
Attributes inherited from Node
#access_token, #endpoint, #identifier
Instance Method Summary collapse
-
#initialize(identifier, options = {}) ⇒ Video
constructor
A new instance of Video.
Methods included from Connections::Comments
Methods inherited from Node
Methods included from Comparison
Constructor Details
#initialize(identifier, options = {}) ⇒ Video
Returns a new instance of Video.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fb_graph/video.rb', line 7 def initialize(identifier, = {}) super if (from = [:from]) @from = if from[:category] FbGraph::Page.new(from.delete(:id), from) else FbGraph::User.new(from.delete(:id), from) end end @message = [:message] @description = [:description] @length = [:length] @created_time = [:created_time] @updated_time = [:updated_time] end |
Instance Attribute Details
#created_time ⇒ Object
Returns the value of attribute created_time.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def created_time @created_time end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def description @description end |
#from ⇒ Object
Returns the value of attribute from.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def from @from end |
#length ⇒ Object
Returns the value of attribute length.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def length @length end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def @message end |
#updated_time ⇒ Object
Returns the value of attribute updated_time.
5 6 7 |
# File 'lib/fb_graph/video.rb', line 5 def updated_time @updated_time end |