Sha256: a6197afb9fed52ab86cfe1a6c8e6f98697b14c396d4106dc910054e7f6a615d8
Contents?: true
Size: 453 Bytes
Versions: 3
Compression:
Stored size: 453 Bytes
Contents
require_relative 'rest_client' module MTG class Resource # Get the hash of query parameters # # @return [Hash] query parameters def self.query @query ||= {:parameters => {}} end # Adds a parameter to the hash of query parameters # # @param args [Hash] the query parameter # @return [Resource] the Resource def self.where(args) query[:parameters].merge!(args) self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mtg_sdk-1.1.1 | lib/mtg_sdk/resource.rb |
mtg_sdk-1.1.0 | lib/mtg_sdk/resource.rb |
mtg_sdk-1.0.2 | lib/mtg_sdk/resource.rb |