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

add_helpers, from_response, from_response_inflected, get_inflected_class, #insurances, #to_json

Constructor Details

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

Instance Method Details

#add_identifier(type:, value:) ⇒ Object



16
17
18
19
20
# File 'lib/redox/models/provider.rb', line 16

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

  self
end

#demographicsObject



11
12
13
14
# File 'lib/redox/models/provider.rb', line 11

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