Class: MTG::Changelog

Inherits:
Object
  • Object
show all
Includes:
ChangelogRepresenter, Roar::JSON
Defined in:
lib/mtg_sdk/changelog.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



8
9
10
# File 'lib/mtg_sdk/changelog.rb', line 8

def details
  @details
end

#release_dateObject

Returns the value of attribute release_date.



8
9
10
# File 'lib/mtg_sdk/changelog.rb', line 8

def release_date
  @release_date
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/mtg_sdk/changelog.rb', line 8

def version
  @version
end

Class Method Details

.allArray<Changelog>

Get all changelogs

Returns:

  • (Array<Changelog>)

    Array of Changelog objects



20
21
22
# File 'lib/mtg_sdk/changelog.rb', line 20

def self.all
  QueryBuilder.new(Changelog).all
end

.Resourcestring

Get the resource string

Returns:

  • (string)

    The API resource string



13
14
15
# File 'lib/mtg_sdk/changelog.rb', line 13

def self.Resource
  "changelogs"
end