Class: Uptrends::Base

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

Direct Known Subclasses

Checkpoint, Probe, ProbeGroup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(probe_hash = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
# File 'lib/uptrends/base.rb', line 9

def initialize(probe_hash = {})
  @original_hash = probe_hash

  Uptrends::Utils.gen_and_set_accessors(self)
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



7
8
9
# File 'lib/uptrends/base.rb', line 7

def attributes
  @attributes
end

#original_hashObject (readonly)

Returns the value of attribute original_hash.



7
8
9
# File 'lib/uptrends/base.rb', line 7

def original_hash
  @original_hash
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/uptrends/base.rb', line 15

def to_s
  Uptrends::Utils.to_s(self)
end