Class: CoronaPresenceTracing::CWACheckIn

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/corona_presence_tracing/cwa_check_in.rb

Constant Summary collapse

BASE_URL =
'https://e.coronawarn.app?v=1'
PUBLIC_KEY =
'gwLMzE153tQwAOf2MZoUXXfzWTdlSpfS99iZffmcmxOG9njSK4RTimFOFwDh6t0T' \
'yw8XR01ugDYjtuKwjjuK49Oh83FWct6XpefPi9Skjxvvz53i9gaMmUEc96pbtoaA'

Instance Attribute Summary collapse

Attributes included from Base

#address, #description, #end_time, #start_time

Instance Method Summary collapse

Methods included from Base

#encoded_payload, included, #url

Constructor Details

#initialize(options = {}) ⇒ CWACheckIn

Returns a new instance of CWACheckIn.



32
33
34
35
36
# File 'lib/corona_presence_tracing/cwa_check_in.rb', line 32

def initialize(options = {})
  @location_type = options[:location_type]
  @default_check_in_length = options[:default_check_in_length]
  super
end

Instance Attribute Details

#default_check_in_lengthObject (readonly)

Returns the value of attribute default_check_in_length.



14
15
16
# File 'lib/corona_presence_tracing/cwa_check_in.rb', line 14

def default_check_in_length
  @default_check_in_length
end

#location_typeObject (readonly)

Returns the value of attribute location_type.



14
15
16
# File 'lib/corona_presence_tracing/cwa_check_in.rb', line 14

def location_type
  @location_type
end