Class: VCloud::Link
- Inherits:
-
Object
- Object
- VCloud::Link
- Includes:
- HappyMapper
- Defined in:
- lib/vcloud/user/link.rb
Overview
Defines a hyper-link with a relationship, hyper-link reference, and an optional MIME type
Class Method Summary collapse
-
.from_xml(xml) ⇒ VCloud::Link
Parses XML to produce a VCloud::Link.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(args = {}) ⇒ Link
A new instance of Link
15 16 17 18 19 20 |
# File 'lib/vcloud/user/link.rb', line 15 def initialize(args = {}) @rel = args[:rel] @type = args[:type] @name = args[:name] @href = args[:href] end |
Class Method Details
.from_xml(xml) ⇒ VCloud::Link
Parses XML to produce a VCloud::Link
26 27 28 |
# File 'lib/vcloud/user/link.rb', line 26 def self.from_xml(xml) parse(xml) end |