Sha256: 431f4084bbe2708e803a16bcae4f7ff13fb22f3b73e2c23e4539d4038f623605

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

module Otter

  class Post < Base
    def permalink_url
      self.data['permalink_url']
    end

    def target
      @target ||= Target.new(self.data['target'])
    end

    def date
      Time.at(Integer(self.data['date']))
    end

    def content
      self.data['content']
    end

    def date_alpha
      self.data['date_alpha']
    end

    class Target < Base
      def topsy_trackback_url
        self.data['topsy_trackback_url']
      end

      def url
        self.data['url']
      end

      def trackback_total
        Integer(self.data['trackback_total'])
      end
    end  # Target
  end  # Post

end  # Otter

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
otter-rb-0.0.1 lib/otter/post.rb