Class: HomeRun

Inherits:
Object show all
Extended by:
ClassMethods
Includes:
Assertions, Constants, Examples
Defined in:
app/models/homerun.rb

Defined Under Namespace

Modules: Assertions, ClassMethods, Constants, Examples

Constant Summary

Constants included from Examples

Examples::Default_hdhr

Constants included from Constants

Constants::Discover, Constants::Discover_error, Constants::Discover_example, Constants::Discover_parse, Constants::Id_pattern, Constants::Ip_pattern, Constants::Ip_pattern0, Constants::Ip_pattern1, Constants::Ip_pattern2, Constants::Ip_pattern3, Constants::Scan_error, Constants::Scan_error_pass

Instance Method Summary collapse

Methods included from Assertions

#assert_post_conditions, #assert_pre_conditions

Constructor Details

#initialize(id = '10311E80') ⇒ HomeRun

discover


19
20
21
# File 'app/models/homerun.rb', line 19

def initialize(id='10311E80')
  @id=id
end

Instance Method Details

#discoverObject

include DefaultAssertions extend DefaultAssertions::ClassMethods


16
17
18
# File 'app/models/homerun.rb', line 16

def discover
  Discover.execute
end

#scanObject

initialize


22
23
24
# File 'app/models/homerun.rb', line 22

def scan
  scan=ShellCommands.new("hdhomerun_config #{@id} scan").execute
end