Class: Templet::Utils::LinkSetFactory

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/templet/utils/link_set_factory.rb,
lib/generators/templet/templates/core/templet/utils/link_set_factory.rb

Overview

Creates lists of HTML links for REST actions

Direct Known Subclasses

LinkSetFactoryWrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



5
6
7
# File 'app/helpers/templet/utils/link_set_factory.rb', line 5

def action
  @action
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



5
6
7
# File 'app/helpers/templet/utils/link_set_factory.rb', line 5

def klass
  @klass
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



5
6
7
# File 'app/helpers/templet/utils/link_set_factory.rb', line 5

def options
  @options
end

#rendererObject

Returns the value of attribute renderer

Returns:

  • (Object)

    the current value of renderer



5
6
7
# File 'app/helpers/templet/utils/link_set_factory.rb', line 5

def renderer
  @renderer
end

Instance Method Details

#call(**extra_options) ⇒ Object



6
7
8
# File 'app/helpers/templet/utils/link_set_factory.rb', line 6

def call(**extra_options)
  create extra_options
end