Module: ContextIO::API::Resource::DeclarativeClassSyntax

Defined in:
lib/contextio/api/resource.rb

Overview

This module contains helper methods for API::Resources' class definitions. It gets extended into a class when API::Resource is included.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#association_nameObject



133
134
135
# File 'lib/contextio/api/resource.rb', line 133

def association_name
  @association_name
end

#associationsObject (readonly)



140
141
142
# File 'lib/contextio/api/resource.rb', line 140

def associations
  @associations ||= []
end

Instance Method Details

#primary_keyObject



127
128
129
# File 'lib/contextio/api/resource.rb', line 127

def primary_key
  @primary_key
end