Sha256: 5ff2f602845ad36bc88e748d1b60fd6e557cd218e8ee45d20ef60c9501e8ec62

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module Tumblr
  class Post
    class Link < Post
      def initialize(post_data = {})
        super(post_data)
        @type = :link
      end

      def title
        @title
      end

      def url
        @url
      end

      def description
        @description
      end

      def self.post_body_keys
        [:url, :description]
      end
    end
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tumblr-rb-2.1.1 lib/tumblr/post/link.rb
tumblr-rb-2.1.0 lib/tumblr/post/link.rb
tumblr-rb-2.0.0 lib/tumblr/post/link.rb
tumblr-rb-2.0.0.alpha lib/tumblr/post/link.rb