Class: ReeDto::CollectionMeta
- Inherits:
-
Object
- Object
- ReeDto::CollectionMeta
- Includes:
- Ree::Contracts::ArgContracts, Ree::Contracts::Core
- Defined in:
- lib/ree_lib/packages/ree_dto/package/ree_dto/dto/collection_meta.rb
Instance Attribute Summary collapse
-
#contract ⇒ Object
readonly
Returns the value of attribute contract.
-
#filter_proc ⇒ Object
readonly
Returns the value of attribute filter_proc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, contract, filter_proc) ⇒ CollectionMeta
constructor
A new instance of CollectionMeta.
Constructor Details
#initialize(name, contract, filter_proc) ⇒ CollectionMeta
Returns a new instance of CollectionMeta.
8 9 10 11 12 |
# File 'lib/ree_lib/packages/ree_dto/package/ree_dto/dto/collection_meta.rb', line 8 def initialize(name, contract, filter_proc) @name = name @contract = contract @filter_proc = filter_proc end |
Instance Attribute Details
#contract ⇒ Object (readonly)
Returns the value of attribute contract.
5 6 7 |
# File 'lib/ree_lib/packages/ree_dto/package/ree_dto/dto/collection_meta.rb', line 5 def contract @contract end |
#filter_proc ⇒ Object (readonly)
Returns the value of attribute filter_proc.
5 6 7 |
# File 'lib/ree_lib/packages/ree_dto/package/ree_dto/dto/collection_meta.rb', line 5 def filter_proc @filter_proc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/ree_lib/packages/ree_dto/package/ree_dto/dto/collection_meta.rb', line 5 def name @name end |