Sha256: 140918ece8acdd3033520feef30e39512af61a5fb3e39f4749844632dcdca972

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

module Tumblr
  class Post
    class Quote < Post
      def initialize(post_data = {})
        super(post_data)
        @type = :quote
        @quote ||= @text
      end

      def quote
        @quote
      end

      def source
        @source
      end

      def source_url
        @source_url
      end

      def source_title
        @source_title
      end

      def self.post_body_keys
        [:quote]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tumblr-rb-2.1.1 lib/tumblr/post/quote.rb
tumblr-rb-2.1.0 lib/tumblr/post/quote.rb