Class: ReeDto::CollectionMeta

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contractObject (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_procObject (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

#nameObject (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