Class: Sergio::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/sergio/sergio_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new_path, args, callback, aggregate_element) ⇒ Element

Returns a new instance of Element.



4
5
6
7
8
9
# File 'lib/sergio/sergio_element.rb', line 4

def initialize(new_path, args, callback, aggregate_element)
  @new_path = new_path.clone
  @callback = callback
  @options = args
  @aggregate_element = aggregate_element
end

Instance Attribute Details

#aggregate_elementObject

Returns the value of attribute aggregate_element.



3
4
5
# File 'lib/sergio/sergio_element.rb', line 3

def aggregate_element
  @aggregate_element
end

#callbackObject

Returns the value of attribute callback.



3
4
5
# File 'lib/sergio/sergio_element.rb', line 3

def callback
  @callback
end

#new_pathObject

Returns the value of attribute new_path.



3
4
5
# File 'lib/sergio/sergio_element.rb', line 3

def new_path
  @new_path
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/sergio/sergio_element.rb', line 3

def options
  @options
end