Class: Ynl::Models::SubMessage
- Inherits:
-
Object
- Object
- Ynl::Models::SubMessage
- Defined in:
- lib/ynl/models.rb
Defined Under Namespace
Classes: Format
Instance Attribute Summary collapse
-
#formats ⇒ Object
readonly
Returns the value of attribute formats.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ SubMessage
constructor
A new instance of SubMessage.
- #resolve(f) ⇒ Object
Constructor Details
#initialize(name:) ⇒ SubMessage
Returns a new instance of SubMessage.
37 38 39 40 |
# File 'lib/ynl/models.rb', line 37 def initialize(name:) @name = name @formats = [] end |
Instance Attribute Details
#formats ⇒ Object (readonly)
Returns the value of attribute formats.
35 36 37 |
# File 'lib/ynl/models.rb', line 35 def formats @formats end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
35 36 37 |
# File 'lib/ynl/models.rb', line 35 def name @name end |
Instance Method Details
#resolve(f) ⇒ Object
42 43 44 |
# File 'lib/ynl/models.rb', line 42 def resolve(f) self end |