Module: Ecfr::AttributeMethodDefinition
- Included in:
- Ecfr::AdminService::EcfrCorrection::CfrReference, Ecfr::AdminService::EditorialNote::Hierarchy, Ecfr::AdminService::IbrCfrRange::Address, Ecfr::AdminService::IbrCfrRange::Organization, Ecfr::AdminService::IbrCfrRange::Organization::Material, Ecfr::AdminService::Issue::Change, Base, Base::Metadata, Common::Hierarchy, SearchService::ContentVersion::HierarchicalCount, SearchService::ContentVersion::HierarchicalCountNode, VersionerService::Ancestors::MetadataNodeInfo, VersionerService::Ancestors::NodeSummary, VersionerService::IssuePackage::IssueVolume, VersionerService::IssuePackage::ShaComparison, VersionerService::IssuePackage::TitleVersion
- Defined in:
- lib/ecfr/attribute_method_definition.rb
Overview
Provides the base functionality for attribute and metadata definition.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/ecfr/attribute_method_definition.rb', line 54 def self.included(base) base.instance_eval do attr_reader :attributes, :options end base.extend(ClassMethods) end |
Instance Method Details
#initialize(attributes = {}, options = {}) ⇒ Object
62 63 64 65 |
# File 'lib/ecfr/attribute_method_definition.rb', line 62 def initialize(attributes = {}, = {}) @attributes = attributes @options = end |