Class: Basilik::Load
- Inherits:
-
Object
- Object
- Basilik::Load
- Defined in:
- lib/basilik/load.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
- .evt_child_added ⇒ Object
- .evt_child_changed ⇒ Object
- .evt_child_moved ⇒ Object
- .evt_child_removed ⇒ Object
- .evt_value ⇒ Object
Instance Method Summary collapse
-
#initialize(url, auth_token = nil) ⇒ Load
constructor
A new instance of Load.
Methods included from Action
#dec, #get_priority, #get_rules, #inc, #push, #read, #remove, #set, #set_priority, #set_rules, #update
Methods included from Ref
#child, #child?, #children?, #name, #num_children, #parent, #root, #root?, #to_s, #val
Constructor Details
#initialize(url, auth_token = nil) ⇒ Load
Returns a new instance of Load.
16 17 18 19 20 |
# File 'lib/basilik/load.rb', line 16 def initialize( url, auth_token=nil ) @url = url @uri = URI.parse( @url ) @auth_token = auth_token end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
8 9 10 |
# File 'lib/basilik/load.rb', line 8 def uri @uri end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/basilik/load.rb', line 8 def url @url end |
Class Method Details
.evt_child_added ⇒ Object
11 |
# File 'lib/basilik/load.rb', line 11 def self.evt_child_added; :add_child; end |
.evt_child_changed ⇒ Object
12 |
# File 'lib/basilik/load.rb', line 12 def self.evt_child_changed; :mod_child; end |
.evt_child_moved ⇒ Object
14 |
# File 'lib/basilik/load.rb', line 14 def self.evt_child_moved; :mv_child; end |
.evt_child_removed ⇒ Object
13 |
# File 'lib/basilik/load.rb', line 13 def self.evt_child_removed; :rm_child; end |
.evt_value ⇒ Object
10 |
# File 'lib/basilik/load.rb', line 10 def self.evt_value; :value; end |