Class: Redox::Models::Provider

Inherits:
Model show all
Defined in:
lib/redox/models/provider.rb

Constant Summary

Constants inherited from AbstractModel

AbstractModel::HIGH_LEVEL_KEYS

Instance Method Summary collapse

Methods inherited from Model

#initialize, #to_h

Methods inherited from AbstractModel

from_response, from_response_inflected, #insurances, #to_json

Constructor Details

This class inherits a constructor from Redox::Models::Model

Instance Method Details

#add_identifier(type:, value:) ⇒ Object



14
15
16
17
18
# File 'lib/redox/models/provider.rb', line 14

def add_identifier(type: , value: )
  self[:Identifiers] << Identifier.new({'ID' => value, 'IDType' => type})

  return self
end

#demographicsObject



9
10
11
12
# File 'lib/redox/models/provider.rb', line 9

def demographics
  self[:Demographics] = Demographics.new(self[:Demographics]) unless self[:Demographics].is_a?(Redox::Models::Demographics)
  self[:Demographics] ||= Demographics.new
end