Class: Performance::Navigation

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

Overview

Navigation Class

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.



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

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.



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

def redirect_count
  @redirect_count
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end