Class: GovukPublishingComponents::Presenters::AttachmentHelper::UnsupportedContentType

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk_publishing_components/presenters/attachment_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_type:) ⇒ UnsupportedContentType

Returns a new instance of UnsupportedContentType.



166
167
168
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 166

def initialize(content_type:)
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



164
165
166
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 164

def content_type
  @content_type
end

Instance Method Details

#abbrObject



172
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 172

def abbr; end

#document?Boolean

Returns:

  • (Boolean)


178
179
180
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 178

def document?
  false
end

#nameObject



170
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 170

def name; end

#opendocument?Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 174

def opendocument?
  false
end

#spreadsheet?Boolean

Returns:

  • (Boolean)


182
183
184
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 182

def spreadsheet?
  false
end