Class: Ibex::ErrorMessages::Document
- Inherits:
-
Object
- Object
- Ibex::ErrorMessages::Document
- Defined in:
- lib/ibex/error_messages.rb
Overview
Immutable parsed messages document.
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
: Array.
-
#version ⇒ Object
readonly
: Integer.
Instance Method Summary collapse
-
#initialize(entries:, version: 2) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(entries:, version: 2) ⇒ Document
Returns a new instance of Document.
43 44 45 46 47 |
# File 'lib/ibex/error_messages.rb', line 43 def initialize(entries:, version: 2) @version = version @entries = entries.freeze freeze end |
Instance Attribute Details
#entries ⇒ Object (readonly)
: Array
40 41 42 |
# File 'lib/ibex/error_messages.rb', line 40 def entries @entries end |
#version ⇒ Object (readonly)
: Integer
39 40 41 |
# File 'lib/ibex/error_messages.rb', line 39 def version @version end |