Sha256: 1fbb472edb068d01930f26eccbca6643b1189ef85d32a6d0e60498f55d389e5e

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

require 'jikan/models/entity'

module Jikan
  class News < BaseEntity

    def url
      raw['url']
    end

    def title
      raw['title']
    end

    def date
      raw['date']
    end

    def author_name
      raw['author_name']
    end

    def author_url
      raw['author_url']
    end

    def forum_url
      raw['forum_url']
    end

    def image_url
      raw['image_url']
    end

    def comments
      raw['comments']
    end

    def intro
      raw['intro']
    end

  end 
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jikan.rb-0.0.7 lib/jikan/models/news.rb
jikan.rb-0.0.6 lib/jikan/models/news.rb