Sha256: eb41f2981710b4fec3250a775fc882b816db5378240acceec742822110bd3ea6
Contents?: true
Size: 838 Bytes
Versions: 2
Compression:
Stored size: 838 Bytes
Contents
module AppleNews class Document module Metadata extend ActiveSupport::Concern included do def is_sponsored? @metadata['isSponsored'] end alias_method :sponsored?, :is_sponsored? def is_sponsored=(val) @metadata['isSponsored'] = val end def is_preview? @metadata['isPreview'] end alias_method :preview?, :is_preview? def is_preview=(val) @metadata['isPreview'] = val end def accessory_text @metadata['accessoryText'] end def accessory_text=(val) @metadata['accessoryText'] = val end def links @metadata['links'] end def links=(val) @metadata['links'] = val end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apple-news-0.1.1 | lib/apple-news/document/metadata.rb |
apple-news-0.1.0 | lib/apple-news/document/metadata.rb |