Class: Bulk::Collection::Error
- Inherits:
-
Struct
- Object
- Struct
- Bulk::Collection::Error
- Defined in:
- lib/bulk/collection.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
6 7 8 |
# File 'lib/bulk/collection.rb', line 6 def data @data end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/bulk/collection.rb', line 6 def type @type end |
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 11 |
# File 'lib/bulk/collection.rb', line 7 def to_hash h = {:type => type} h[:data] = data if data h end |