Class: Ynl::Models::SubMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/ynl/models.rb

Defined Under Namespace

Classes: Format

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#formatsObject (readonly)

Returns the value of attribute formats.



35
36
37
# File 'lib/ynl/models.rb', line 35

def formats
  @formats
end

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