Sha256: e3a401e8328763adf9f36cb697855acf1d3181377ffcf6072436600dde1487a5

Contents?: true

Size: 276 Bytes

Versions: 13

Compression:

Stored size: 276 Bytes

Contents

module AppleNews
  module Behavior
    class Base
      include Properties

      def self.type(val = nil)
        val.nil? ? _required_property_map[:type][:default] : required_property(:type, val)
      end

      def type
        self.class.type
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
apple-news-0.5.1 lib/apple-news/behaviors/base.rb
apple-news-0.5.0 lib/apple-news/behaviors/base.rb
apple-news-0.4.2 lib/apple-news/behaviors/base.rb
apple-news-0.4.1 lib/apple-news/behaviors/base.rb
apple-news-0.4.0 lib/apple-news/behaviors/base.rb
apple-news-0.3.1 lib/apple-news/behaviors/base.rb
apple-news-0.3.0 lib/apple-news/behaviors/base.rb
apple-news-0.2.5 lib/apple-news/behaviors/base.rb
apple-news-0.2.4 lib/apple-news/behaviors/base.rb
apple-news-0.2.3 lib/apple-news/behaviors/base.rb
apple-news-0.2.2 lib/apple-news/behaviors/base.rb
apple-news-0.2.1 lib/apple-news/behaviors/base.rb
apple-news-0.2.0 lib/apple-news/behaviors/base.rb