Class: NoyoFulfillment::Group

Inherits:
ApiResource show all
Defined in:
lib/noyo_fulfillment/models/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#createdObject

Returns the value of attribute created.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def created
  @created
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def id
  @id
end

#modifiedObject

Returns the value of attribute modified.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def modified
  @modified
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def name
  @name
end

#organization_idObject

Returns the value of attribute organization_id.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def organization_id
  @organization_id
end

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/noyo_fulfillment/models/group.rb', line 3

def version
  @version
end

Instance Method Details

#contactsObject



13
14
15
# File 'lib/noyo_fulfillment/models/group.rb', line 13

def contacts
  Contact.all(group_id: id)
end

#group_enrollmentsObject



21
22
23
# File 'lib/noyo_fulfillment/models/group.rb', line 21

def group_enrollments
  GroupEnrollment.all(group_id: id)
end

#locationsObject



17
18
19
# File 'lib/noyo_fulfillment/models/group.rb', line 17

def locations
  Location.all(group_id: id)
end