Sha256: 98e814ebbbf202a1b1165534ac1ce1399a15b4ee301e43b39a958adbe8fa380e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require_relative 'representers/set_representer' module Pokemon class Set include Roar::JSON include SetRepresenter attr_accessor :code, :name, :series, :total_cards, :standard_legal, :expanded_legal, :release_date, :symbol_url, :ptcgo_code # Get the resource string # # @return [String] The API resource string def self.Resource "sets" end # Find a single set by the set code # # @param id [String] the set code # @return [Set] the Set object response def self.find(id) QueryBuilder.new(Set).find(id) end # Get all sets from a query by paging through data # # @return [Array<Set>] Array of Set objects def self.all QueryBuilder.new(Set).all end # Adds a parameter to the hash of query parameters # # @param args [Hash] the query parameter # @return [QueryBuilder] the QueryBuilder def self.where(args) QueryBuilder.new(Set).where(args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pokemon_tcg_sdk-2.5.0 | lib/pokemon_tcg_sdk/set.rb |