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.



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

def initialize(content_type:)
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



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

def content_type
  @content_type
end

Instance Method Details

#abbrObject



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

def abbr; end

#document?Boolean

Returns:

  • (Boolean)


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

def document?
  false
end

#nameObject



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

def name; end

#opendocument?Boolean

Returns:

  • (Boolean)


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

def opendocument?
  false
end

#pdf?Boolean

Returns:

  • (Boolean)


190
191
192
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 190

def pdf?
  false
end

#spreadsheet?Boolean

Returns:

  • (Boolean)


186
187
188
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 186

def spreadsheet?
  false
end