class EwayRapid::InternalModels::Verification
Attributes
address[RW]
cvn[RW]
email[RW]
mobile[RW]
phone[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/eway_rapid/models/internal_models.rb, line 440 def self.from_hash(hash) verification = Verification.new verification.cvn = hash[Constants::CVN] verification.address = hash[Constants::ADDRESS] verification.email = hash[Constants::EMAIL] verification.mobile = hash[Constants::MOBILE] verification.phone = hash[Constants::PHONE] verification end
from_json(json)
click to toggle source
# File lib/eway_rapid/models/internal_models.rb, line 435 def self.from_json(json) hash = JSON.parse(json) from_hash(hash) end
Public Instance Methods
to_json(options={})
click to toggle source
# File lib/eway_rapid/models/internal_models.rb, line 425 def to_json(options={}) hash = {} hash[Constants::CVN] = cvn if cvn hash[Constants::ADDRESS] = address if address hash[Constants::EMAIL] = email if email hash[Constants::MOBILE] = mobile if mobile hash[Constants::PHONE] = phone if phone hash.to_json end