Class: TurboRex::MSRPC::MIDL::Interface
- Inherits:
-
Object
- Object
- TurboRex::MSRPC::MIDL::Interface
- Defined in:
- lib/turborex/msrpc/midl.rb
Instance Attribute Summary collapse
-
#if_attrs ⇒ Object
readonly
Returns the value of attribute if_attrs.
-
#procedures ⇒ Object
readonly
Returns the value of attribute procedures.
-
#typedefs ⇒ Object
readonly
Returns the value of attribute typedefs.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
- #human ⇒ Object
-
#initialize(interface) ⇒ Interface
constructor
A new instance of Interface.
- #push_procedure(proc) ⇒ Object
- #push_typedef(typedef) ⇒ Object
Constructor Details
#initialize(interface) ⇒ Interface
Returns a new instance of Interface.
12 13 14 15 16 17 18 19 |
# File 'lib/turborex/msrpc/midl.rb', line 12 def initialize(interface) @uuid = interface.uuid @typedefs = [] @if_attrs = [ Attribute::EndpointAttr.new(interface.endpoints) ] @procedures = [] end |
Instance Attribute Details
#if_attrs ⇒ Object (readonly)
Returns the value of attribute if_attrs.
9 10 11 |
# File 'lib/turborex/msrpc/midl.rb', line 9 def if_attrs @if_attrs end |
#procedures ⇒ Object (readonly)
Returns the value of attribute procedures.
10 11 12 |
# File 'lib/turborex/msrpc/midl.rb', line 10 def procedures @procedures end |
#typedefs ⇒ Object (readonly)
Returns the value of attribute typedefs.
8 9 10 |
# File 'lib/turborex/msrpc/midl.rb', line 8 def typedefs @typedefs end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
7 8 9 |
# File 'lib/turborex/msrpc/midl.rb', line 7 def uuid @uuid end |
Instance Method Details
#human ⇒ Object
29 30 31 |
# File 'lib/turborex/msrpc/midl.rb', line 29 def human end |
#push_procedure(proc) ⇒ Object
21 22 23 |
# File 'lib/turborex/msrpc/midl.rb', line 21 def push_procedure(proc) @procedures << proc end |
#push_typedef(typedef) ⇒ Object
25 26 27 |
# File 'lib/turborex/msrpc/midl.rb', line 25 def push_typedef(typedef) @typedefs << typedef end |