Class: Performance::Navigation

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

Constant Summary collapse

TYPE_RESERVED =
255
TYPE_NAVIGATE =
0
TYPE_RELOAD =
1
TYPE_BACK_FORWARD =
2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Navigation

Returns a new instance of Navigation.



9
10
11
12
13
# File 'lib/performance.rb', line 9

def initialize args
  args.each do |k,v|
    instance_variable_set("@#{k}", v) if respond_to?(k.to_sym) unless v.nil?
  end
end

Instance Attribute Details

#redirect_countObject (readonly)

Returns the value of attribute redirect_count.



8
9
10
# File 'lib/performance.rb', line 8

def redirect_count
  @redirect_count
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/performance.rb', line 8

def type
  @type
end