Class: Decidim::Design::ShareHelper::ShareableResource
- Inherits:
-
Object
- Object
- Decidim::Design::ShareHelper::ShareableResource
- Defined in:
- decidim-design/app/helpers/decidim/design/share_helper.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ ShareableResource
constructor
A new instance of ShareableResource.
- #presenter ⇒ Object
- #to_sgid ⇒ Object
Constructor Details
#initialize ⇒ ShareableResource
Returns a new instance of ShareableResource.
41 42 43 |
# File 'decidim-design/app/helpers/decidim/design/share_helper.rb', line 41 def initialize @title = "Shareable Resource" end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
51 52 53 |
# File 'decidim-design/app/helpers/decidim/design/share_helper.rb', line 51 def title @title end |
Instance Method Details
#[](key) ⇒ Object
49 |
# File 'decidim-design/app/helpers/decidim/design/share_helper.rb', line 49 def [](key); end |
#presenter ⇒ Object
45 |
# File 'decidim-design/app/helpers/decidim/design/share_helper.rb', line 45 def presenter = ShareableResourcePresenter.new(self) |
#to_sgid ⇒ Object
47 |
# File 'decidim-design/app/helpers/decidim/design/share_helper.rb', line 47 def to_sgid = "#" |