Class: Uptrends::Base
- Inherits:
-
Object
- Object
- Uptrends::Base
- Defined in:
- lib/uptrends/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#original_hash ⇒ Object
readonly
Returns the value of attribute original_hash.
Instance Method Summary collapse
-
#initialize(probe_hash = {}) ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/uptrends/base.rb', line 7 def attributes @attributes end |
#original_hash ⇒ Object (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_s ⇒ Object
15 16 17 |
# File 'lib/uptrends/base.rb', line 15 def to_s Uptrends::Utils.to_s(self) end |