Class: NoyoFulfillment::Group
- Inherits:
-
ApiResource
- Object
- BaseModel
- ApiResource
- NoyoFulfillment::Group
- Defined in:
- lib/noyo_fulfillment/models/group.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modified ⇒ Object
Returns the value of attribute modified.
-
#name ⇒ Object
Returns the value of attribute name.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#version ⇒ Object
Returns the value of attribute version.
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
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
#created ⇒ Object
Returns the value of attribute created.
3 4 5 |
# File 'lib/noyo_fulfillment/models/group.rb', line 3 def created @created end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/noyo_fulfillment/models/group.rb', line 3 def id @id end |
#modified ⇒ Object
Returns the value of attribute modified.
3 4 5 |
# File 'lib/noyo_fulfillment/models/group.rb', line 3 def modified @modified end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/noyo_fulfillment/models/group.rb', line 3 def name @name end |
#organization_id ⇒ Object
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 |
#version ⇒ Object
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
#contacts ⇒ Object
13 14 15 |
# File 'lib/noyo_fulfillment/models/group.rb', line 13 def contacts Contact.all(group_id: id) end |
#group_enrollments ⇒ Object
21 22 23 |
# File 'lib/noyo_fulfillment/models/group.rb', line 21 def group_enrollments GroupEnrollment.all(group_id: id) end |