Class: Altcha::ServerSignatureVerificationData
- Inherits:
-
Object
- Object
- Altcha::ServerSignatureVerificationData
- Defined in:
- lib/altcha.rb
Overview
Class for verifying server signatures, containing various data points.
Instance Attribute Summary collapse
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#country ⇒ Object
Returns the value of attribute country.
-
#detected_language ⇒ Object
Returns the value of attribute detected_language.
-
#email ⇒ Object
Returns the value of attribute email.
-
#expire ⇒ Object
Returns the value of attribute expire.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#fields_hash ⇒ Object
Returns the value of attribute fields_hash.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#score ⇒ Object
Returns the value of attribute score.
-
#time ⇒ Object
Returns the value of attribute time.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
-
#to_json(options = {}) ⇒ String
Converts the ServerSignatureVerificationData object to a JSON string.
Instance Attribute Details
#classification ⇒ Object
Returns the value of attribute classification.
144 145 146 |
# File 'lib/altcha.rb', line 144 def classification @classification end |
#country ⇒ Object
Returns the value of attribute country.
144 145 146 |
# File 'lib/altcha.rb', line 144 def country @country end |
#detected_language ⇒ Object
Returns the value of attribute detected_language.
144 145 146 |
# File 'lib/altcha.rb', line 144 def detected_language @detected_language end |
#email ⇒ Object
Returns the value of attribute email.
144 145 146 |
# File 'lib/altcha.rb', line 144 def email @email end |
#expire ⇒ Object
Returns the value of attribute expire.
144 145 146 |
# File 'lib/altcha.rb', line 144 def expire @expire end |
#fields ⇒ Object
Returns the value of attribute fields.
144 145 146 |
# File 'lib/altcha.rb', line 144 def fields @fields end |
#fields_hash ⇒ Object
Returns the value of attribute fields_hash.
144 145 146 |
# File 'lib/altcha.rb', line 144 def fields_hash @fields_hash end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
144 145 146 |
# File 'lib/altcha.rb', line 144 def ip_address @ip_address end |
#reasons ⇒ Object
Returns the value of attribute reasons.
144 145 146 |
# File 'lib/altcha.rb', line 144 def reasons @reasons end |
#score ⇒ Object
Returns the value of attribute score.
144 145 146 |
# File 'lib/altcha.rb', line 144 def score @score end |
#time ⇒ Object
Returns the value of attribute time.
144 145 146 |
# File 'lib/altcha.rb', line 144 def time @time end |
#verified ⇒ Object
Returns the value of attribute verified.
144 145 146 |
# File 'lib/altcha.rb', line 144 def verified @verified end |
Instance Method Details
#to_json(options = {}) ⇒ String
Converts the ServerSignatureVerificationData object to a JSON string.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/altcha.rb', line 150 def to_json( = {}) { classification: @classification, country: @country, detectedLanguage: @detected_language, email: @email, expire: @expire, fields: @fields, fieldsHash: @fields_hash, ipAddress: @ip_address, reasons: @reasons, score: @score, time: @time, verified: @verified }.to_json() end |