Sha256: 35385d52adcad93e54c5f25e32c8723ec1ea1d8bf81fbc10b1a53c4d2d15e05c

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

module Eco
  module API
    class SessionConfig
      class S3Bucket < Hash

        def initialize(root:)
          super(nil)
          @root = root
        end

        def name=(value)
          self["name"] = value
        end

        def name
          self["name"]
        end

        def prefix=(value)
          self["prefix"] = value
        end

        def prefix
          self["prefix"]
        end

        def access_key_id=(key)
          self["access_key_id"] = key
        end

        def access_key_id
          self["access_key_id"]
        end

        def secret_access_key=(key)
          self["secret_access_key"] = key
        end

        def secret_access_key
          self["secret_access_key"]
        end

        def region=(region)
          self["region"] = region
        end

        def region
          self["region"]
        end

        def target_directories=(value)
          self["target_directories"] = [value].flatten
        end

        def target_directories
          self["target_directories"]
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eco-helpers-0.6.1 lib/eco/api/session_config/s3_bucket.rb
eco-helpers-0.6.0 lib/eco/api/session_config/s3_bucket.rb