Class: GemMonitor::Extractor

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_monitor/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Extractor

Returns a new instance of Extractor.



5
6
7
# File 'lib/gem_monitor/extractor.rb', line 5

def initialize args = {}
  self.gem_objects = []
end

Instance Attribute Details

#gem_objectsObject

Returns the value of attribute gem_objects.



3
4
5
# File 'lib/gem_monitor/extractor.rb', line 3

def gem_objects
  @gem_objects
end

#gemfile_contentObject

Returns the value of attribute gemfile_content.



3
4
5
# File 'lib/gem_monitor/extractor.rb', line 3

def gemfile_content
  @gemfile_content
end

#gemfile_lock_contentObject

Returns the value of attribute gemfile_lock_content.



3
4
5
# File 'lib/gem_monitor/extractor.rb', line 3

def gemfile_lock_content
  @gemfile_lock_content
end

Instance Method Details

#extract_project_gem_objectsObject



17
18
19
20
# File 'lib/gem_monitor/extractor.rb', line 17

def extract_project_gem_objects
  extract_and_create_gems_objects
  gem_objects
end