Class: OpenTox::PostAttribute
- Inherits:
-
Object
- Object
- OpenTox::PostAttribute
- Defined in:
- lib/to-html.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_mandatory ⇒ Object
Returns the value of attribute is_mandatory.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, is_mandatory = true, default = nil, description = nil) ⇒ PostAttribute
constructor
A new instance of PostAttribute.
Constructor Details
#initialize(name, is_mandatory = true, default = nil, description = nil) ⇒ PostAttribute
Returns a new instance of PostAttribute.
77 78 79 80 81 82 |
# File 'lib/to-html.rb', line 77 def initialize(name, is_mandatory=true, default=nil, description=nil) @name = name @is_mandatory = is_mandatory @default = default @description = description end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
75 76 77 |
# File 'lib/to-html.rb', line 75 def default @default end |
#description ⇒ Object
Returns the value of attribute description.
75 76 77 |
# File 'lib/to-html.rb', line 75 def description @description end |
#is_mandatory ⇒ Object
Returns the value of attribute is_mandatory.
75 76 77 |
# File 'lib/to-html.rb', line 75 def is_mandatory @is_mandatory end |
#name ⇒ Object
Returns the value of attribute name.
75 76 77 |
# File 'lib/to-html.rb', line 75 def name @name end |