Sha256: caab8b52dbf9d60f1e5b50c7ba074b3801a2021a1510cbcd2bc30fc37fdf5a75

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 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

2 entries across 2 versions & 1 rubygems

Version Path
mtg_sdk-3.2.0 lib/mtg_sdk/changelog.rb
mtg_sdk-3.1.0 lib/mtg_sdk/changelog.rb