class ElderScrollsLegends::Card

Attributes

attributes[RW]
collectible[RW]
cost[RW]
health[RW]
id[RW]
image_url[RW]
keywords[RW]
name[RW]
power[RW]
rarity[RW]
set[RW]
soul_summon[RW]
soul_trap[RW]
subtypes[RW]
text[RW]
type[RW]
unique[RW]

Public Class Methods

Resource() click to toggle source

Get the resource string

@return [String] The API resource string

# File lib/elder_scrolls_legends_sdk/card.rb, line 21
def self.Resource
  "cards"
end
all() click to toggle source

Get all cards from a query by paging through data

@return [Array<Card>] Array of Card objects

# File lib/elder_scrolls_legends_sdk/card.rb, line 36
def self.all
  QueryBuilder.new(Card).all
end
find(id) click to toggle source

Find a single card by the card id

@param id [String] the card id @return [Card] the Card object response

# File lib/elder_scrolls_legends_sdk/card.rb, line 29
def self.find(id)
  QueryBuilder.new(Card).find(id)
end
new() click to toggle source
# File lib/elder_scrolls_legends_sdk/card.rb, line 12
def initialize
  @subtypes = []
  @keywords = []
  @attributes = []
end
where(args) click to toggle source

Adds a parameter to the hash of query parameters

@param args [Hash] the query parameter @return [Array<Card>] Array of Card objects

# File lib/elder_scrolls_legends_sdk/card.rb, line 44
def self.where(args)
  QueryBuilder.new(Card).where(args)
end