class Nursys::Nurse

Constants

ATTRIBUTES

Public Class Methods

new(attributes={}) click to toggle source
# File lib/nursys/nurse.rb, line 28
def initialize attributes={}
  attributes.each { |k, v| self.send("#{k}=", v) }
end

Public Instance Methods

hospital_practice_setting() click to toggle source
# File lib/nursys/nurse.rb, line 44
def hospital_practice_setting
  @hospital_practice_setting.nil? ? '0' : @hospital_practice_setting
end
notifications_enabled() click to toggle source
# File lib/nursys/nurse.rb, line 36
def notifications_enabled
  @notifications_enabled.nil? ? '0' : @notifications_enabled
end
reminders_enabled() click to toggle source
# File lib/nursys/nurse.rb, line 40
def reminders_enabled
  @reminders_enabled.nil? ? '0' : @reminders_enabled
end
save() click to toggle source
# File lib/nursys/nurse.rb, line 48
def save
  response = Nursys::ManageNurseList.request(self.to_hash)
  response[:manage_nurse_list_response][:nurse_responses][:nurse_response][:success_flag]
end
submission_action_code() click to toggle source
# File lib/nursys/nurse.rb, line 32
def submission_action_code
  @submission_action_code.nil? ? 'A' : @submission_action_code
end
to_hash() click to toggle source
# File lib/nursys/nurse.rb, line 53
def to_hash
  hash = Hash.new
  ATTRIBUTES.each do |attr|
    hash[attr.to_s.keyify] = self.send(attr) unless self.send(attr).nil?
  end
  hash
end