Sha256: a447f6f049f04df9fe50da3c9d569996c2b1f6b6edf269e24dd6a4b355838e32

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

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

      def answer
        @answer
      end

      def question
        @question
      end

      def self.post_body_keys
        [:question, :answer]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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