Sha256: 9cb42d550ad9847f02ad1d4f70df3ecff2155d687770c4b2b507bb66d871dd00

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

require_relative 'representers/changelog_representer'

module MTG
  class Changelog
    include Roar::JSON
    include ChangelogRepresenter
  
    attr_accessor :version, :details, :release_date
    
    # Get the resource string
    #
    # @return [string] The API resource string
    def self.Resource
      "changelogs"
    end
    
    # Get all changelogs
    #
    # @return [Array<Changelog>] Array of Changelog objects
    def self.all
      QueryBuilder.new(Changelog).all
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mtg_sdk-3.2.1 lib/mtg_sdk/changelog.rb
mtg_sdk-3.0.0 lib/mtg_sdk/changelog.rb
mtg_sdk-2.2.0 lib/mtg_sdk/changelog.rb
mtg_sdk-2.1.0 lib/mtg_sdk/changelog.rb
mtg_sdk-2.0.1 lib/mtg_sdk/changelog.rb
mtg_sdk-2.0.0 lib/mtg_sdk/changelog.rb