Class: NoyoFulfillment::IndividualEnrollment

Inherits:
ApiResource show all
Includes:
Mixins::NestedUnder
Defined in:
lib/noyo_fulfillment/models/individual_enrollment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins::NestedUnder

included

Methods inherited from ApiResource

all, authenticate, #create, #create_hash, #create_url, find, get_body, handle_unauthenticated, headers, #initialize, perform_request_authenticated, resource_path_name, resource_url, #resource_url, single_resource_url, #single_resource_url

Methods included from NoyoApi::Client::UserAgent

included

Methods inherited from BaseModel

#==, #attributes, class_name, #excluded_attributes, #initialize, #inspect, #synced_attributes, #to_h, #update_attrs

Constructor Details

This class inherits a constructor from NoyoFulfillment::ApiResource

Instance Attribute Details

#group_enrollment_idObject

Returns the value of attribute group_enrollment_id.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def group_enrollment_id
  @group_enrollment_id
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def id
  @id
end

#individual_idObject

Returns the value of attribute individual_id.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def individual_id
  @individual_id
end

#individual_typeObject

Returns the value of attribute individual_type.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def individual_type
  @individual_type
end

#line_of_coverageObject

Returns the value of attribute line_of_coverage.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def line_of_coverage
  @line_of_coverage
end

#plan_idObject

Returns the value of attribute plan_id.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def plan_id
  @plan_id
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def status
  @status
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 8

def version
  @version
end

Instance Method Details

#dependent_idObject



24
25
26
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 24

def dependent_id
  individual_id if individual_type == 'dependent'
end

#employee_idObject



20
21
22
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 20

def employee_id
  individual_id if individual_type == 'employee'
end

#group_enrollmentObject



28
29
30
# File 'lib/noyo_fulfillment/models/individual_enrollment.rb', line 28

def group_enrollment
  NoyoFulfillment::GroupEnrollment.find(group_enrollment_id)
end