Class: Access::Report

Inherits:
Object
  • Object
show all
Includes:
MuchMeta
Defined in:
lib/access/report.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MuchMeta

#set_up_methods, #set_values

Constructor Details

#initialize(values) ⇒ Report

Returns a new instance of Report.



40
41
42
43
44
# File 'lib/access/report.rb', line 40

def initialize(values)
  @used_fields = []
  set_up_methods(values)
  set_values(values)
end

Class Method Details

.all_usage(options = {}) ⇒ Object



5
6
7
8
# File 'lib/access/report.rb', line 5

def self.all_usage(options = {})
  # Internal Admin only Call
  Access::Api.new.all_usage options
end

.member_location_frequent(member, options = {}) ⇒ Object



28
29
30
# File 'lib/access/report.rb', line 28

def self.member_location_frequent(member, options = {})
  Access::Api.new.member_location_frequent member, options
end

.member_location_recent(member, options = {}) ⇒ Object



32
33
34
# File 'lib/access/report.rb', line 32

def self.member_location_recent(member, options = {})
  Access::Api.new.member_location_recent member, options
end

.member_query_frequent(member, options = {}) ⇒ Object



20
21
22
# File 'lib/access/report.rb', line 20

def self.member_query_frequent(member, options = {})
  Access::Api.new.member_query_frequent member, options
end

.member_query_recent(member, options = {}) ⇒ Object



24
25
26
# File 'lib/access/report.rb', line 24

def self.member_query_recent(member, options = {})
  Access::Api.new.member_query_recent member, options
end

.process_batch(chunk) ⇒ Object



36
37
38
# File 'lib/access/report.rb', line 36

def self.process_batch(chunk)
  chunk.map { |data| new(data) }
end

.usage(options = {}) ⇒ Object



10
11
12
13
# File 'lib/access/report.rb', line 10

def self.usage(options = {})
  # Internal Admin only Call
  Access::Api.new.usage options
end

.usage_other(key, options = {}) ⇒ Object



15
16
17
18
# File 'lib/access/report.rb', line 15

def self.usage_other(key, options = {})
  # Internal Admin only Call
  Access::Api.new.usage_other key, options
end