Class: Cocoadex::ResultCode
- Defined in:
- lib/cocoadex/models/result_code.rb
Constant Summary collapse
- TEMPLATE_NAME =
:result_code
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(origin, name, value, description) ⇒ ResultCode
constructor
A new instance of ResultCode.
- #origin ⇒ Object
Methods inherited from Element
#<=>, #parse_parameters, #print, #to_s, #type
Methods included from Bri::Templates::Helpers
Constructor Details
#initialize(origin, name, value, description) ⇒ ResultCode
Returns a new instance of ResultCode.
8 9 10 11 |
# File 'lib/cocoadex/models/result_code.rb', line 8 def initialize origin, name, value, description @origin = origin @name, @value, @description = name, value, description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/cocoadex/models/result_code.rb', line 6 def description @description end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/cocoadex/models/result_code.rb', line 6 def value @value end |
Instance Method Details
#origin ⇒ Object
13 14 15 |
# File 'lib/cocoadex/models/result_code.rb', line 13 def origin @origin end |