Class: GitRaw
- Inherits:
-
Object
- Object
- GitRaw
- Defined in:
- lib/aa-vimeo-downloader.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(url) ⇒ GitRaw
constructor
A new instance of GitRaw.
Constructor Details
#initialize(url) ⇒ GitRaw
Returns a new instance of GitRaw.
9 10 11 |
# File 'lib/aa-vimeo-downloader.rb', line 9 def initialize(url) @body = open(url).map(&:chomp) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/aa-vimeo-downloader.rb', line 8 def body @body end |