Class: Rose::Proxy::Root

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

Overview

This class is used by the DSL to collect update attributes. Just like a root is the foundation of transporting water into a tree, a Root provides what’s required to import data into a Rose

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#create_previewerObject (readonly)

Returns the value of attribute create_previewer.



81
82
83
# File 'lib/rose/proxy.rb', line 81

def create_previewer
  @create_previewer
end

#creator(preview = false) ⇒ Object (readonly)

Parameters:

  • preview (true, false) (defaults to: false)

    whether to use the create_previewer or not



109
110
111
# File 'lib/rose/proxy.rb', line 109

def creator
  @creator
end

#finderObject (readonly)

Returns the value of attribute finder.



77
78
79
# File 'lib/rose/proxy.rb', line 77

def finder
  @finder
end

#update_previewerObject (readonly)

Returns the value of attribute update_previewer.



79
80
81
# File 'lib/rose/proxy.rb', line 79

def update_previewer
  @update_previewer
end

#updater(preview = false) ⇒ Object (readonly)

Parameters:

  • preview (true, false) (defaults to: false)

    whether to use the update_previewer or not



104
105
106
# File 'lib/rose/proxy.rb', line 104

def updater
  @updater
end

Instance Method Details

#create(&blk) ⇒ Object



95
96
97
# File 'lib/rose/proxy.rb', line 95

def create(&blk)
  @creator = blk
end

#find(&blk) ⇒ Object



83
84
85
# File 'lib/rose/proxy.rb', line 83

def find(&blk)
  @finder = blk
end

#preview_create(&blk) ⇒ Object



99
100
101
# File 'lib/rose/proxy.rb', line 99

def preview_create(&blk)
  @create_previewer = blk
end

#preview_update(&blk) ⇒ Object



91
92
93
# File 'lib/rose/proxy.rb', line 91

def preview_update(&blk)
  @update_previewer = blk
end

#update(&blk) ⇒ Object



87
88
89
# File 'lib/rose/proxy.rb', line 87

def update(&blk)
  @updater = blk
end