Class: Ynl::Models::Family
- Inherits:
-
Struct
- Object
- Struct
- Ynl::Models::Family
- Defined in:
- lib/ynl/models.rb,
lib/ynl/models.rb
Instance Attribute Summary collapse
-
#attribute_sets ⇒ Object
Returns the value of attribute attribute_sets.
-
#consts ⇒ Object
Returns the value of attribute consts.
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#enums ⇒ Object
Returns the value of attribute enums.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#mcast_groups ⇒ Object
Returns the value of attribute mcast_groups.
-
#name ⇒ Object
Returns the value of attribute name.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#protonum ⇒ Object
Returns the value of attribute protonum.
-
#structs ⇒ Object
Returns the value of attribute structs.
-
#sub_messages ⇒ Object
Returns the value of attribute sub_messages.
Instance Method Summary collapse
Instance Attribute Details
#attribute_sets ⇒ Object
Returns the value of attribute attribute_sets
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def attribute_sets @attribute_sets end |
#consts ⇒ Object
Returns the value of attribute consts
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def consts @consts end |
#doc ⇒ Object
Returns the value of attribute doc
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def doc @doc end |
#enums ⇒ Object
Returns the value of attribute enums
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def enums @enums end |
#flags ⇒ Object
Returns the value of attribute flags
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def flags @flags end |
#mcast_groups ⇒ Object
Returns the value of attribute mcast_groups
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def mcast_groups @mcast_groups end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def name @name end |
#operations ⇒ Object
Returns the value of attribute operations
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def operations @operations end |
#protocol ⇒ Object
Returns the value of attribute protocol
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def protocol @protocol end |
#protonum ⇒ Object
Returns the value of attribute protonum
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def protonum @protonum end |
#structs ⇒ Object
Returns the value of attribute structs
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def structs @structs end |
#sub_messages ⇒ Object
Returns the value of attribute sub_messages
3 4 5 |
# File 'lib/ynl/models.rb', line 3 def @sub_messages end |
Instance Method Details
#find_type(name) ⇒ Object
13 14 15 |
# File 'lib/ynl/models.rb', line 13 def find_type(name) enums[name] or flags[name] or structs[name] or raise ParseError, "Unknown type: #{name}" end |
#resolve ⇒ Object
7 8 9 10 11 |
# File 'lib/ynl/models.rb', line 7 def resolve structs.transform_values! {|s| s.resolve(self) } attribute_sets.transform_values! {|s| s.resolve(self) } self end |