Class: TurboRex::MSRPC::MIDL::Parameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, data_type = nil) ⇒ Parameter

Returns a new instance of Parameter.



68
69
70
71
72
73
# File 'lib/turborex/msrpc/midl.rb', line 68

def initialize(name, data_type=nil)
  @data_type = data_type
  @name = name
  @attributes = []
  @type_return = false
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



66
67
68
# File 'lib/turborex/msrpc/midl.rb', line 66

def attributes
  @attributes
end

#data_typeObject (readonly)

Returns the value of attribute data_type.



64
65
66
# File 'lib/turborex/msrpc/midl.rb', line 64

def data_type
  @data_type
end

#nameObject

Returns the value of attribute name.



65
66
67
# File 'lib/turborex/msrpc/midl.rb', line 65

def name
  @name
end

Instance Method Details

#is_return_type?Boolean

Returns:

  • (Boolean)


87
88
89
# File 'lib/turborex/msrpc/midl.rb', line 87

def is_return_type?
  @type_return
end

#push_attribute(attribute) ⇒ Object



75
76
77
# File 'lib/turborex/msrpc/midl.rb', line 75

def push_attribute(attribute)
  @attributes << attribute
end

#set_data_type(type) ⇒ Object



79
80
81
# File 'lib/turborex/msrpc/midl.rb', line 79

def set_data_type(type)
  @data_type = type
end

#type_returnObject



83
84
85
# File 'lib/turborex/msrpc/midl.rb', line 83

def type_return
  @type_return = true
end