Class: EasyExport::ExportConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_export.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#partialObject

Returns the value of attribute partial.



38
39
40
# File 'lib/easy_export.rb', line 38

def partial
  @partial
end

Instance Method Details

#fields(val = nil) ⇒ Object



44
45
46
# File 'lib/easy_export.rb', line 44

def fields(val = nil)
  val.nil? ? @fields : @fields = build_fields(val)
end

#scope(val = nil) ⇒ Object



40
41
42
# File 'lib/easy_export.rb', line 40

def scope(val = nil)
  val.nil? ? @scope : @scope = val
end