Module: ContextIO::API::Resource::DeclarativeClassSyntax
- Defined in:
- lib/contextio/api/resource.rb
Overview
This module contains helper methods for API::Resource
s' class
definitions. It gets extend
ed into a class when API::Resource
is
include
d.
Instance Attribute Summary collapse
- #association_name ⇒ Object readonly
- #associations ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#association_name ⇒ Object
133 134 135 |
# File 'lib/contextio/api/resource.rb', line 133 def association_name @association_name end |
#associations ⇒ Object (readonly)
140 141 142 |
# File 'lib/contextio/api/resource.rb', line 140 def associations @associations ||= [] end |
Instance Method Details
#primary_key ⇒ Object
127 128 129 |
# File 'lib/contextio/api/resource.rb', line 127 def primary_key @primary_key end |