Class: Rose::Proxy::Root
- Inherits:
-
Object
- Object
- Rose::Proxy::Root
- 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
-
#create_previewer ⇒ Object
readonly
Returns the value of attribute create_previewer.
- #creator(preview = false) ⇒ Object readonly
-
#finder ⇒ Object
readonly
Returns the value of attribute finder.
-
#update_previewer ⇒ Object
readonly
Returns the value of attribute update_previewer.
- #updater(preview = false) ⇒ Object readonly
Instance Method Summary collapse
- #create(&blk) ⇒ Object
- #find(&blk) ⇒ Object
- #preview_create(&blk) ⇒ Object
- #preview_update(&blk) ⇒ Object
- #update(&blk) ⇒ Object
Instance Attribute Details
#create_previewer ⇒ Object (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)
109 110 111 |
# File 'lib/rose/proxy.rb', line 109 def creator @creator end |
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
77 78 79 |
# File 'lib/rose/proxy.rb', line 77 def finder @finder end |
#update_previewer ⇒ Object (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)
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 |