Class: TurboRex::MSRPC::MIDL::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/turborex/msrpc/midl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_attrsObject (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

#proceduresObject (readonly)

Returns the value of attribute procedures.



10
11
12
# File 'lib/turborex/msrpc/midl.rb', line 10

def procedures
  @procedures
end

#typedefsObject (readonly)

Returns the value of attribute typedefs.



8
9
10
# File 'lib/turborex/msrpc/midl.rb', line 8

def typedefs
  @typedefs
end

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

#humanObject



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