class EwayRapid::InternalModels::BeagleVerification
Attributes
email[RW]
phone[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/eway_rapid/models/internal_models.rb, line 19 def self.from_hash(hash) beagle_verification = self.new beagle_verification.email = hash[Constants::EMAIL] beagle_verification.phone = hash[Constants::PHONE] beagle_verification end
from_json(json)
click to toggle source
# File lib/eway_rapid/models/internal_models.rb, line 14 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 7 def to_json(options={}) hash = {} hash[Constants::EMAIL] = email hash[Constants::PHONE] = phone hash.to_json end