Class: BankAccountConnector::TextField
- Inherits:
-
Object
- Object
- BankAccountConnector::TextField
- Defined in:
- app/lib/bank_account_connector.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, label) ⇒ TextField
constructor
A new instance of TextField.
- #label ⇒ Object
- #type ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'app/lib/bank_account_connector.rb', line 25 def name @name end |
#value ⇒ Object (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
#label ⇒ Object
27 28 29 |
# File 'app/lib/bank_account_connector.rb', line 27 def label @label || @name.to_s end |
#type ⇒ Object
21 22 23 |
# File 'app/lib/bank_account_connector.rb', line 21 def type nil end |