Class: Aliyun::OSS::Logging::Log
Overview
A bucket log exposes requests made on the given bucket. Lines of the log represent a single request. The lines of a log can be accessed with the lines method.
log = Bucket.logs_for('marcel').first
log.lines
More information about the logged requests can be found in the documentation for Log::Line.
Defined Under Namespace
Classes: Line
Instance Method Summary collapse
-
#initialize(log_object) ⇒ Log
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
- #lines ⇒ Object
- #path ⇒ Object
Constructor Details
#initialize(log_object) ⇒ Log
:nodoc:
96 97 98 |
# File 'lib/aliyun/oss/logging.rb', line 96 def initialize(log_object) #:nodoc: @log = log_object end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
116 117 118 |
# File 'lib/aliyun/oss/logging.rb', line 116 def inspect #:nodoc: "#<%s:0x%s '%s'>" % [self.class.name, object_id, path] end |
#lines ⇒ Object
102 103 104 |
# File 'lib/aliyun/oss/logging.rb', line 102 def lines log.value.lines.map {|line| Line.new(line)} end |
#path ⇒ Object
112 113 114 |
# File 'lib/aliyun/oss/logging.rb', line 112 def path log.path end |