Class: Satis::Signature::Component

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/satis/signature/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(form:, attribute:, **options, &block) ⇒ Component

Returns a new instance of Component.



10
11
12
13
14
# File 'app/components/satis/signature/component.rb', line 10

def initialize(form:, attribute:, **options, &block)
  @form = form
  @attribute = attribute
  @options = options
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



8
9
10
# File 'app/components/satis/signature/component.rb', line 8

def attribute
  @attribute
end

#formObject (readonly)

Returns the value of attribute form.



8
9
10
# File 'app/components/satis/signature/component.rb', line 8

def form
  @form
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'app/components/satis/signature/component.rb', line 8

def options
  @options
end

#urlObject (readonly)

Returns the value of attribute url.



8
9
10
# File 'app/components/satis/signature/component.rb', line 8

def url
  @url
end