Class: EasyExport::ExportConfig
- Inherits:
-
Object
- Object
- EasyExport::ExportConfig
- Defined in:
- lib/easy_export.rb
Overview
These are the DSL methods available within the ‘exportable` block
Instance Attribute Summary collapse
-
#partial ⇒ Object
Returns the value of attribute partial.
Instance Method Summary collapse
Instance Attribute Details
#partial ⇒ Object
Returns the value of attribute partial.
39 40 41 |
# File 'lib/easy_export.rb', line 39 def partial @partial end |
Instance Method Details
#fields(val = nil) ⇒ Object
45 46 47 |
# File 'lib/easy_export.rb', line 45 def fields(val = nil) val.nil? ? @fields : @fields = build_fields(val) end |
#scope(val = nil) ⇒ Object
41 42 43 |
# File 'lib/easy_export.rb', line 41 def scope(val = nil) val.nil? ? @scope : @scope = val end |