Class: GoogleFormInput
- Inherits:
-
Object
- Object
- GoogleFormInput
- Defined in:
- lib/google_form_input.rb
Instance Attribute Summary collapse
-
#input_type ⇒ Object
readonly
Returns the value of attribute input_type.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(input_type, label, name) ⇒ GoogleFormInput
constructor
A new instance of GoogleFormInput.
- #to_param ⇒ Object
Constructor Details
#initialize(input_type, label, name) ⇒ GoogleFormInput
Returns a new instance of GoogleFormInput.
4 5 6 7 8 |
# File 'lib/google_form_input.rb', line 4 def initialize(input_type, label, name) @input_type = input_type @label = label @name = name end |
Instance Attribute Details
#input_type ⇒ Object (readonly)
Returns the value of attribute input_type.
2 3 4 |
# File 'lib/google_form_input.rb', line 2 def input_type @input_type end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/google_form_input.rb', line 2 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/google_form_input.rb', line 2 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
2 3 4 |
# File 'lib/google_form_input.rb', line 2 def value @value end |
Instance Method Details
#to_param ⇒ Object
14 15 16 |
# File 'lib/google_form_input.rb', line 14 def to_param {@name => @value} end |