Class: UserIdentity
- Inherits:
-
Object
- Object
- UserIdentity
- Defined in:
- lib/log_analysis/model/user_identity.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#records ⇒ Object
Returns the value of attribute records.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(params) ⇒ UserIdentity
constructor
A new instance of UserIdentity.
Constructor Details
#initialize(params) ⇒ UserIdentity
Returns a new instance of UserIdentity.
10 11 12 13 14 |
# File 'lib/log_analysis/model/user_identity.rb', line 10 def initialize(params) @host = params[:host] @user_agent = params[:user_agent] @records = params[:records] end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/log_analysis/model/user_identity.rb', line 6 def host @host end |
#records ⇒ Object
Returns the value of attribute records.
6 7 8 |
# File 'lib/log_analysis/model/user_identity.rb', line 6 def records @records end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
6 7 8 |
# File 'lib/log_analysis/model/user_identity.rb', line 6 def user_agent @user_agent end |