Class: Performance::Navigation
- Inherits:
-
Object
- Object
- Performance::Navigation
- 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
-
#redirect_count ⇒ Object
readonly
Returns the value of attribute redirect_count.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args) ⇒ Navigation
constructor
A new instance of Navigation.
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_count ⇒ Object (readonly)
Returns the value of attribute redirect_count.
8 9 10 |
# File 'lib/performance.rb', line 8 def redirect_count @redirect_count end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/performance.rb', line 8 def type @type end |