Class: BankAccountConnector::TextField

Inherits:
Object
  • Object
show all
Defined in:
app/lib/bank_account_connector.rb

Direct Known Subclasses

HiddenField, PasswordField

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, label) ⇒ TextField

Returns a new instance of TextField.



15
16
17
18
19
# File 'app/lib/bank_account_connector.rb', line 15

def initialize(name, value, label)
  @name = name
  @value = value
  @label = label
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'app/lib/bank_account_connector.rb', line 25

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



25
26
27
# File 'app/lib/bank_account_connector.rb', line 25

def value
  @value
end

Instance Method Details

#labelObject



27
28
29
# File 'app/lib/bank_account_connector.rb', line 27

def label
  @label || @name.to_s
end

#typeObject



21
22
23
# File 'app/lib/bank_account_connector.rb', line 21

def type
  nil
end