Class: Basilik::Load

Inherits:
Object
  • Object
show all
Includes:
Action, Ref
Defined in:
lib/basilik/load.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#uriObject (readonly)

Returns the value of attribute uri.



8
9
10
# File 'lib/basilik/load.rb', line 8

def uri
  @uri
end

#urlObject (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_addedObject



11
# File 'lib/basilik/load.rb', line 11

def self.evt_child_added;   :add_child; end

.evt_child_changedObject



12
# File 'lib/basilik/load.rb', line 12

def self.evt_child_changed; :mod_child; end

.evt_child_movedObject



14
# File 'lib/basilik/load.rb', line 14

def self.evt_child_moved;   :mv_child;  end

.evt_child_removedObject



13
# File 'lib/basilik/load.rb', line 13

def self.evt_child_removed; :rm_child;  end

.evt_valueObject



10
# File 'lib/basilik/load.rb', line 10

def self.evt_value;         :value;     end