Class: DocSmoosher::Field
- Defined in:
- lib/doc_smoosher/field.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#example ⇒ Object
Returns the value of attribute example.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#required ⇒ Object
Returns the value of attribute required.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from ApiObject
Attributes included from Parameters
Instance Method Summary collapse
-
#initialize(params = {}, &block) ⇒ Field
constructor
A new instance of Field.
Methods included from Parameters
Constructor Details
#initialize(params = {}, &block) ⇒ Field
Returns a new instance of Field.
5 6 7 8 9 10 |
# File 'lib/doc_smoosher/field.rb', line 5 def initialize(params = {}, &block) # Defaults self.required = false super(params) end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def default @default end |
#example ⇒ Object
Returns the value of attribute example.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def example @example end |
#max ⇒ Object
Returns the value of attribute max.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def min @min end |
#required ⇒ Object
Returns the value of attribute required.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def required @required end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/doc_smoosher/field.rb', line 3 def type @type end |