Class: OpenTox::PostAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/to-html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject

Returns the value of attribute default.



75
76
77
# File 'lib/to-html.rb', line 75

def default
  @default
end

#descriptionObject

Returns the value of attribute description.



75
76
77
# File 'lib/to-html.rb', line 75

def description
  @description
end

#is_mandatoryObject

Returns the value of attribute is_mandatory.



75
76
77
# File 'lib/to-html.rb', line 75

def is_mandatory
  @is_mandatory
end

#nameObject

Returns the value of attribute name.



75
76
77
# File 'lib/to-html.rb', line 75

def name
  @name
end