Method: Verizon::ConsentDeleteRequest.from_hash
- Defined in:
- lib/verizon/models/consent_delete_request.rb
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/verizon/models/consent_delete_request.rb', line 48 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_name = hash.key?('accountName') ? hash['accountName'] : SKIP device_list = hash.key?('deviceList') ? hash['deviceList'] : SKIP # Create object from extracted values. ConsentDeleteRequest.new(account_name, device_list) end |