Class: Leeroy::Types::Semaphore

Inherits:
Dash
  • Object
show all
Includes:
Helpers::Dumpable
Defined in:
lib/leeroy/types/semaphore.rb

Instance Attribute Summary

Attributes included from Helpers::Dumpable

#dump_properties

Instance Method Summary collapse

Methods included from Helpers::Dumpable

#dump, #dumper

Methods inherited from Dash

#dumper

Constructor Details

#initialize(*args, &block) ⇒ Semaphore

Returns a new instance of Semaphore.



14
15
16
17
18
19
20
21
22
# File 'lib/leeroy/types/semaphore.rb', line 14

def initialize(*args, &block)
  super

  self.dump_properties = [
    :bucket,
    :object,
    :payload,
  ]
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/leeroy/types/semaphore.rb', line 24

def to_s
  "s3://#{self.bucket}/#{self.object}"
end