Class: Rooftop::ResourceLinks::Link
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Rooftop::ResourceLinks::Link
- Defined in:
- lib/rooftop/resource_links/link.rb
Instance Attribute Summary collapse
-
#link_type ⇒ Object
Returns the value of attribute link_type.
Instance Method Summary collapse
-
#initialize(link_type, args) ⇒ Link
constructor
A new instance of Link.
- #resolve ⇒ Object
Constructor Details
#initialize(link_type, args) ⇒ Link
Returns a new instance of Link.
5 6 7 8 |
# File 'lib/rooftop/resource_links/link.rb', line 5 def initialize(link_type,args) @link_type = link_type super(args) end |
Instance Attribute Details
#link_type ⇒ Object
Returns the value of attribute link_type.
4 5 6 |
# File 'lib/rooftop/resource_links/link.rb', line 4 def link_type @link_type end |
Instance Method Details
#resolve ⇒ Object
10 11 12 |
# File 'lib/rooftop/resource_links/link.rb', line 10 def resolve raise NotImplementedError, "TODO: resolve the link." end |