Class: Meteorlog::Wrapper::CloudWatchLogs

Inherits:
Object
  • Object
show all
Defined in:
lib/meteorlog/wrapper/cloud_watch_logs.rb

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_logs, options = {}) ⇒ CloudWatchLogs

Returns a new instance of CloudWatchLogs.



2
3
4
5
# File 'lib/meteorlog/wrapper/cloud_watch_logs.rb', line 2

def initialize(cloud_watch_logs, options = {})
  @cloud_watch_logs = cloud_watch_logs
  @options = options.dup
end

Instance Method Details

#log_groupsObject



7
8
9
10
11
12
# File 'lib/meteorlog/wrapper/cloud_watch_logs.rb', line 7

def log_groups
  Meteorlog::Wrapper::LogGroupCollection.new(
    @cloud_watch_logs,
    @cloud_watch_logs.describe_log_groups.each.inject([]) {|r, i| r + i.log_groups },
    @options)
end

#modified?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/meteorlog/wrapper/cloud_watch_logs.rb', line 14

def modified?
  !!@options[:modified]
end