Class: Spina::Parts::ResourceLink

Inherits:
Base
  • Object
show all
Defined in:
app/models/spina/parts/resource_link.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#hint, #item_name, #title

Instance Method Summary collapse

Methods inherited from Base

#label

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'app/models/spina/parts/resource_link.rb', line 6

def options
  @options
end

Instance Method Details

#contentObject



8
9
10
# File 'app/models/spina/parts/resource_link.rb', line 8

def content
  ::Spina::Resource.find_by(id: resource_id)
end