Class: NoyoFulfillment::GroupEnrollment

Inherits:
ApiResource show all
Includes:
Mixins::NestedUnder
Defined in:
lib/noyo_fulfillment/models/group_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

#carrier_idObject

Returns the value of attribute carrier_id.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def carrier_id
  @carrier_id
end

#createdObject

Returns the value of attribute created.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def created
  @created
end

#group_idObject

Returns the value of attribute group_id.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def group_id
  @group_id
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def id
  @id
end

#modifiedObject

Returns the value of attribute modified.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def modified
  @modified
end

#versionObject

Returns the value of attribute version.



6
7
8
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 6

def version
  @version
end

Instance Method Details

#plansObject



16
17
18
# File 'lib/noyo_fulfillment/models/group_enrollment.rb', line 16

def plans
  NoyoFulfillment::GroupPlans::Base.all(group_enrollment_id: id)
end