Class: Mass::ConnectionCheck

Inherits:
BlackStack::Base
  • Object
show all
Defined in:
lib/base-line/connectioncheck.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ ConnectionCheck

Returns a new instance of ConnectionCheck.



9
10
11
12
# File 'lib/base-line/connectioncheck.rb', line 9

def initialize(h)
    super(h)
    self.profile = Mass::Profile.get(h['id_profile']).child_class_instance if h['id_profile']
end

Instance Attribute Details

#profileObject

Returns the value of attribute profile.



3
4
5
# File 'lib/base-line/connectioncheck.rb', line 3

def profile
  @profile
end

Class Method Details

.object_nameObject



5
6
7
# File 'lib/base-line/connectioncheck.rb', line 5

def self.object_name
    'connectioncheck'
end