Class: GovukPublishingComponents::Presenters::AttachmentHelper::UnsupportedContentType
- Inherits:
-
Object
- Object
- GovukPublishingComponents::Presenters::AttachmentHelper::UnsupportedContentType
- Defined in:
- lib/govuk_publishing_components/presenters/attachment_helper.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
Instance Method Summary collapse
- #abbr ⇒ Object
- #document? ⇒ Boolean
-
#initialize(content_type:) ⇒ UnsupportedContentType
constructor
A new instance of UnsupportedContentType.
- #name ⇒ Object
- #opendocument? ⇒ Boolean
- #pdf? ⇒ Boolean
- #spreadsheet? ⇒ Boolean
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_type ⇒ Object (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
#abbr ⇒ Object
176 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 176 def abbr; end |
#document? ⇒ Boolean
182 183 184 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 182 def document? false end |
#name ⇒ Object
174 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 174 def name; end |
#opendocument? ⇒ Boolean
178 179 180 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 178 def opendocument? false end |
#pdf? ⇒ Boolean
190 191 192 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 190 def pdf? false end |
#spreadsheet? ⇒ Boolean
186 187 188 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 186 def spreadsheet? false end |