Class: ZOMG::IDL::Nodes::Operation

Inherits:
Node
  • Object
show all
Defined in:
lib/zomg/idl/nodes/operation.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children

Instance Method Summary collapse

Methods inherited from Node

#duhr, #to_i, #to_ruby, #to_ruby_sexp, #to_sexp

Methods included from Visitable

#accept

Constructor Details

#initialize(attribute, returns, name, params, raises, context) ⇒ Operation

Returns a new instance of Operation.



6
7
8
9
10
11
12
13
# File 'lib/zomg/idl/nodes/operation.rb', line 6

def initialize(attribute, returns, name, params, raises, context)
  super(params)
  @attribute = attribute
  @returns = returns
  @name = name
  @raises = raises
  @context = context
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



5
6
7
# File 'lib/zomg/idl/nodes/operation.rb', line 5

def attribute
  @attribute
end

#contextObject

Returns the value of attribute context.



5
6
7
# File 'lib/zomg/idl/nodes/operation.rb', line 5

def context
  @context
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/zomg/idl/nodes/operation.rb', line 5

def name
  @name
end

#raisesObject

Returns the value of attribute raises.



5
6
7
# File 'lib/zomg/idl/nodes/operation.rb', line 5

def raises
  @raises
end

#returnsObject

Returns the value of attribute returns.



5
6
7
# File 'lib/zomg/idl/nodes/operation.rb', line 5

def returns
  @returns
end