Class: Mdq::Discovery
- Inherits:
-
Object
- Object
- Mdq::Discovery
- Defined in:
- lib/mdq/discovery.rb
Overview
Discovery
Direct Known Subclasses
Instance Method Summary collapse
- #android_discoverable? ⇒ Boolean
- #apple_discoverable? ⇒ Boolean
-
#initialize ⇒ Discovery
constructor
rubocop:disable Metrics/ClassLength.
Constructor Details
#initialize ⇒ Discovery
rubocop:disable Metrics/ClassLength
11 12 13 |
# File 'lib/mdq/discovery.rb', line 11 def initialize @home = FileUtils.mkdir_p([Dir.home, '.mdq'].join(File::Separator)) end |
Instance Method Details
#android_discoverable? ⇒ Boolean
15 16 17 |
# File 'lib/mdq/discovery.rb', line 15 def android_discoverable? adb_command('version').present? end |
#apple_discoverable? ⇒ Boolean
19 20 21 |
# File 'lib/mdq/discovery.rb', line 19 def apple_discoverable? apple_command('--version').present? end |