Class: Getv::Package::Xml
- Inherits:
-
Getv::Package
- Object
- Getv::Package
- Getv::Package::Xml
- Defined in:
- lib/getv/package/xml.rb
Overview
Getv::Package::Xml class
Instance Attribute Summary
Attributes inherited from Getv::Package
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ Xml
constructor
A new instance of Xml.
Methods inherited from Getv::Package
create, #defaults, #latest_version, #update_versions, #versions
Constructor Details
#initialize(name, opts = {}) ⇒ Xml
Returns a new instance of Xml.
7 8 9 10 11 |
# File 'lib/getv/package/xml.rb', line 7 def initialize(name, opts = {}) opts = defaults.merge(opts) opts = { url: nil, user: nil, password: nil, xpath: '//a/@href' }.merge(opts) super name, opts end |