Class: Rooftop::ResourceLinks::Link

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/rooftop/resource_links/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#resolveObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/rooftop/resource_links/link.rb', line 10

def resolve
  raise NotImplementedError, "TODO: resolve the link."
end