Class: Lycra::Multidoc
- Inherits:
-
Object
- Object
- Lycra::Multidoc
- Defined in:
- lib/lycra/multidoc.rb
Instance Attribute Summary collapse
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
Instance Method Summary collapse
- #client ⇒ Object
- #document_type ⇒ Object
- #index_name ⇒ Object
-
#initialize(*documents) ⇒ Multidoc
constructor
A new instance of Multidoc.
Constructor Details
Instance Attribute Details
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
3 4 5 |
# File 'lib/lycra/multidoc.rb', line 3 def documents @documents end |
Instance Method Details
#document_type ⇒ Object
14 15 16 |
# File 'lib/lycra/multidoc.rb', line 14 def document_type documents.map { |d| d.document_type } end |
#index_name ⇒ Object
10 11 12 |
# File 'lib/lycra/multidoc.rb', line 10 def index_name documents.map { |d| d.alias_name } end |