Class: NISTRandomnessBeacon::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/nist_randomness_beacon/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Record

Returns a new instance of Record.



10
11
12
13
14
# File 'lib/nist_randomness_beacon/record.rb', line 10

def initialize(args={})
  args.each do |k, v|
    instance_variable_set("@#{k}".underscore, v) unless v.nil?
  end
end

Instance Attribute Details

#certificate_idObject (readonly)

Returns the value of attribute certificate_id.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def certificate_id
  @certificate_id
end

#externalObject (readonly)

Returns the value of attribute external.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def external
  @external
end

#frequencyObject (readonly)

Returns the value of attribute frequency.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def frequency
  @frequency
end

#humanized_status_codeObject (readonly)

Returns the value of attribute humanized_status_code.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def humanized_status_code
  @humanized_status_code
end

#list_valuesObject (readonly)

Returns the value of attribute list_values.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def list_values
  @list_values
end

#local_random_valueObject (readonly)

Returns the value of attribute local_random_value.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def local_random_value
  @local_random_value
end

#output_valueObject (readonly)

Returns the value of attribute output_value.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def output_value
  @output_value
end

#precommitment_valueObject (readonly)

Returns the value of attribute precommitment_value.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def precommitment_value
  @precommitment_value
end

#seed_valueObject (readonly)

Returns the value of attribute seed_value.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def seed_value
  @seed_value
end

#signature_valueObject (readonly)

Returns the value of attribute signature_value.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def signature_value
  @signature_value
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def status_code
  @status_code
end

#time_stampObject (readonly)

Returns the value of attribute time_stamp.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def time_stamp
  @time_stamp
end

#versionObject (readonly)

Returns the value of attribute version.



5
6
7
# File 'lib/nist_randomness_beacon/record.rb', line 5

def version
  @version
end