Class: VideoParser::VideoSite
- Inherits:
-
Object
- Object
- VideoParser::VideoSite
- Includes:
- GateWay
- Defined in:
- lib/video_parser/video_site.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #get(options = {}) ⇒ Object
-
#initialize(uri) ⇒ VideoSite
constructor
A new instance of VideoSite.
Methods included from GateWay
Constructor Details
#initialize(uri) ⇒ VideoSite
Returns a new instance of VideoSite.
8 9 10 |
# File 'lib/video_parser/video_site.rb', line 8 def initialize(uri) @uri = uri end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
6 7 8 |
# File 'lib/video_parser/video_site.rb', line 6 def doc @doc end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/video_parser/video_site.rb', line 6 def uri @uri end |
Instance Method Details
#get(options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/video_parser/video_site.rb', line 12 def get( = {}) @doc = get_doc(uri, ) extract_video_info end |