Sha256: d3f9f5a937a0a052a0dc0a35e268635591832eb5426cac7ec3ddab9d356b001d
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
require_relative 'representers/changelog_representer' require_relative 'resource' module MTG class Changelog < Resource include Roar::JSON include RestClient include ChangelogRepresenter attr_accessor :version, :details, :release_date # Get all changelogs # # @return [Array<Changelog>] Array of Changelog objects def self.all changelogs = [] response = RestClient.get('changelogs') data = response.body['changelogs'] data.each do |changelog| changelogs << new.extend(ChangelogRepresenter).from_json(changelog.to_json) end @query = nil changelogs end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mtg_sdk-1.1.1 | lib/mtg_sdk/changelog.rb |
mtg_sdk-1.1.0 | lib/mtg_sdk/changelog.rb |
mtg_sdk-1.0.2 | lib/mtg_sdk/changelog.rb |