Class: Middleman::S3Metadata::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/middleman/s3_metadata/extension.rb

Defined Under Namespace

Classes: Metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_buildObject

Returns the value of attribute after_build

Returns:

  • (Object)

    the current value of after_build



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def after_build
  @after_build
end

#aws_access_key_idObject

Returns the value of attribute aws_access_key_id

Returns:

  • (Object)

    the current value of aws_access_key_id



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def aws_access_key_id
  @aws_access_key_id
end

#aws_secret_access_keyObject

Returns the value of attribute aws_secret_access_key

Returns:

  • (Object)

    the current value of aws_secret_access_key



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def aws_secret_access_key
  @aws_secret_access_key
end

#bucketObject

Returns the value of attribute bucket

Returns:

  • (Object)

    the current value of bucket



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def bucket
  @bucket
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def prefix
  @prefix
end

#public_pathObject

Returns the value of attribute public_path

Returns:

  • (Object)

    the current value of public_path



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def public_path
  @public_path
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



6
7
8
# File 'lib/middleman/s3_metadata/extension.rb', line 6

def region
  @region
end

Instance Method Details

#mappingsObject

Returns an array



15
16
17
# File 'lib/middleman/s3_metadata/extension.rb', line 15

def mappings
  @mappings ||= []
end

#s3_metadata(object, key, value) ⇒ Object

object - String key for S3 object. key - Attribute key for metadata. value - Value for metadata.

No return value



24
25
26
# File 'lib/middleman/s3_metadata/extension.rb', line 24

def (object, key, value)
  mappings << Metadata.new(object, key, value)
end