Class: PDC::V1::Release

Inherits:
Base
  • Object
show all
Defined in:
lib/pdc/v1/release.rb

Instance Attribute Summary

Attributes included from Resource::RestApi

#url

Instance Method Summary collapse

Methods included from Resource::RestApi

#initialize

Methods included from Resource::Scopes

#scoped

Methods included from Resource::Attributes

#[]=, #attributes=, #initialize, #inspect

Methods included from Resource::Identity

#==, #as_json, #hash, #id, #id=, #id?, #uri

Methods included from Logging

#logger

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PDC::Resource::Attributes

Instance Method Details

#variantsObject



11
12
13
# File 'lib/pdc/v1/release.rb', line 11

def variants
  @variants ||= ReleaseVariant.where(release: id)
end