Class: Xapi::TeamAnalyticsQuery
- Inherits:
-
Object
- Object
- Xapi::TeamAnalyticsQuery
- Defined in:
- lib/xapi/team_analytics_query.rb
Instance Attribute Summary collapse
-
#activity_id ⇒ Object
Returns the value of attribute activity_id.
-
#activity_type ⇒ Object
Returns the value of attribute activity_type.
-
#agent_email ⇒ Object
Returns the value of attribute agent_email.
-
#registration ⇒ Object
Returns the value of attribute registration.
-
#team_name ⇒ Object
Returns the value of attribute team_name.
-
#verb_id ⇒ Object
Returns the value of attribute verb_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(&block) ⇒ TeamAnalyticsQuery
constructor
A new instance of TeamAnalyticsQuery.
- #parameter_map ⇒ Object
Constructor Details
#initialize(&block) ⇒ TeamAnalyticsQuery
Returns a new instance of TeamAnalyticsQuery.
8 9 10 11 12 13 |
# File 'lib/xapi/team_analytics_query.rb', line 8 def initialize(&block) self.version = TCAPIVersion::V101 if block_given? block[self] end end |
Instance Attribute Details
#activity_id ⇒ Object
Returns the value of attribute activity_id.
6 7 8 |
# File 'lib/xapi/team_analytics_query.rb', line 6 def activity_id @activity_id end |
#activity_type ⇒ Object
Returns the value of attribute activity_type.
6 7 8 |
# File 'lib/xapi/team_analytics_query.rb', line 6 def activity_type @activity_type end |
#agent_email ⇒ Object
Returns the value of attribute agent_email.
6 7 8 |
# File 'lib/xapi/team_analytics_query.rb', line 6 def agent_email @agent_email end |
#registration ⇒ Object
Returns the value of attribute registration.
6 7 8 |
# File 'lib/xapi/team_analytics_query.rb', line 6 def registration @registration end |
#team_name ⇒ Object
Returns the value of attribute team_name.
6 7 8 |
# File 'lib/xapi/team_analytics_query.rb', line 6 def team_name @team_name end |
#verb_id ⇒ Object
Returns the value of attribute verb_id.
5 6 7 |
# File 'lib/xapi/team_analytics_query.rb', line 5 def verb_id @verb_id end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/xapi/team_analytics_query.rb', line 5 def version @version end |
Instance Method Details
#parameter_map ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/xapi/team_analytics_query.rb', line 23 def parameter_map params = {} params['verb'] = verb_id.to_s if verb_id params['activity'] = activity_id.to_s if activity_id params['registration'] = registration if registration params['activity_type'] = activity_type if activity_type params['team_name'] = team_name if team_name params['agent_email'] = agent_email if agent_email params end |