Class: Cocoadex::ResultCode

Inherits:
Element
  • Object
show all
Defined in:
lib/cocoadex/models/result_code.rb

Constant Summary collapse

TEMPLATE_NAME =
:result_code

Instance Attribute Summary collapse

Attributes inherited from Element

#name

Instance Method Summary collapse

Methods inherited from Element

#<=>, #parse_parameters, #print, #to_s, #type

Methods included from Bri::Templates::Helpers

h3, inline_title, wrap

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

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/cocoadex/models/result_code.rb', line 6

def description
  @description
end

#valueObject (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

#originObject



13
14
15
# File 'lib/cocoadex/models/result_code.rb', line 13

def origin
  @origin
end