Class: Altcha::V1::ServerSignatureVerificationData

Inherits:
Object
  • Object
show all
Defined in:
lib/altcha/v1.rb

Overview

Typed fields returned from verify_server_signature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#classificationObject

Returns the value of attribute classification.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def classification
  @classification
end

#countryObject

Returns the value of attribute country.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def country
  @country
end

#detected_languageObject

Returns the value of attribute detected_language.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def detected_language
  @detected_language
end

#emailObject

Returns the value of attribute email.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def email
  @email
end

#expireObject

Returns the value of attribute expire.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def expire
  @expire
end

#fieldsObject

Returns the value of attribute fields.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def fields
  @fields
end

#fields_hashObject

Returns the value of attribute fields_hash.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def fields_hash
  @fields_hash
end

#ip_addressObject

Returns the value of attribute ip_address.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def ip_address
  @ip_address
end

#reasonsObject

Returns the value of attribute reasons.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def reasons
  @reasons
end

#scoreObject

Returns the value of attribute score.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def score
  @score
end

#timeObject

Returns the value of attribute time.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def time
  @time
end

#verifiedObject

Returns the value of attribute verified.



130
131
132
# File 'lib/altcha/v1.rb', line 130

def verified
  @verified
end

Instance Method Details

#to_json(options = {}) ⇒ Object



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/altcha/v1.rb', line 133

def to_json(options = {})
  {
    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(options)
end