Class: Xapi::TeamAnalyticsQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_typeObject

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_emailObject

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

#registrationObject

Returns the value of attribute registration.



6
7
8
# File 'lib/xapi/team_analytics_query.rb', line 6

def registration
  @registration
end

#team_nameObject

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_idObject

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

#versionObject

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_mapObject



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