Sha256: 7d2e748884dcc40a31b0e472706b1b30b628c9f1bae8f7658b19ad458c1c8bb8

Contents?: true

Size: 276 Bytes

Versions: 13

Compression:

Stored size: 276 Bytes

Contents

module AppleNews
  module Addition
    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/additions/base.rb
apple-news-0.5.0 lib/apple-news/additions/base.rb
apple-news-0.4.2 lib/apple-news/additions/base.rb
apple-news-0.4.1 lib/apple-news/additions/base.rb
apple-news-0.4.0 lib/apple-news/additions/base.rb
apple-news-0.3.1 lib/apple-news/additions/base.rb
apple-news-0.3.0 lib/apple-news/additions/base.rb
apple-news-0.2.5 lib/apple-news/additions/base.rb
apple-news-0.2.4 lib/apple-news/additions/base.rb
apple-news-0.2.3 lib/apple-news/additions/base.rb
apple-news-0.2.2 lib/apple-news/additions/base.rb
apple-news-0.2.1 lib/apple-news/additions/base.rb
apple-news-0.2.0 lib/apple-news/additions/base.rb