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
- #spreadsheet? ⇒ Boolean
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_type ⇒ Object (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
#abbr ⇒ Object
172 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 172 def abbr; end |
#document? ⇒ Boolean
178 179 180 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 178 def document? false end |
#name ⇒ Object
170 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 170 def name; end |
#opendocument? ⇒ Boolean
174 175 176 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 174 def opendocument? false end |
#spreadsheet? ⇒ Boolean
182 183 184 |
# File 'lib/govuk_publishing_components/presenters/attachment_helper.rb', line 182 def spreadsheet? false end |