Class: Studio::EmailImage::Entry

Inherits:
Struct
  • Object
show all
Defined in:
app/services/studio/email_image.rb

Overview

A registered email. default_asset is a logical asset path inside the gem (resolved through the host's asset pipeline); nil means the email has no inherited artwork and renders bannerless until someone uploads one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_assetObject

Returns the value of attribute default_asset

Returns:

  • (Object)

    the current value of default_asset



49
50
51
# File 'app/services/studio/email_image.rb', line 49

def default_asset
  @default_asset
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



49
50
51
# File 'app/services/studio/email_image.rb', line 49

def description
  @description
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



49
50
51
# File 'app/services/studio/email_image.rb', line 49

def key
  @key
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



49
50
51
# File 'app/services/studio/email_image.rb', line 49

def label
  @label
end

Instance Method Details

#to_sObject



50
# File 'app/services/studio/email_image.rb', line 50

def to_s = key