Class: CardDB::Ruleset
Instance Attribute Summary
Attributes inherited from Resource
#client, #data
Instance Method Summary
collapse
Methods inherited from Resource
#[], #initialize, #key?, #to_h, #to_json
Instance Method Details
#archived? ⇒ Boolean
2085
|
# File 'lib/carddb/collection.rb', line 2085
def archived? = !!data['isArchived']
|
#archived_at ⇒ Object
2084
|
# File 'lib/carddb/collection.rb', line 2084
def archived_at = parse_time(data['archivedAt'])
|
#created_at ⇒ Object
2086
|
# File 'lib/carddb/collection.rb', line 2086
def created_at = parse_time(data['createdAt'])
|
#current_version ⇒ Object
2089
2090
2091
|
# File 'lib/carddb/collection.rb', line 2089
def current_version
@current_version ||= data['currentVersion'] ? RulesetVersion.new(data['currentVersion'], client: client) : nil
end
|
#current_version_id ⇒ Object
2083
|
# File 'lib/carddb/collection.rb', line 2083
def current_version_id = data['currentVersionId']
|
#description ⇒ Object
2080
|
# File 'lib/carddb/collection.rb', line 2080
def description = data['description']
|
#game ⇒ Object
2077
|
# File 'lib/carddb/collection.rb', line 2077
def game = data['game']
|
#game_id ⇒ Object
2076
|
# File 'lib/carddb/collection.rb', line 2076
def game_id = data['gameId']
|
#id ⇒ Object
2075
|
# File 'lib/carddb/collection.rb', line 2075
def id = data['id']
|
#key ⇒ Object
2078
|
# File 'lib/carddb/collection.rb', line 2078
def key = data['key']
|
#name ⇒ Object
2079
|
# File 'lib/carddb/collection.rb', line 2079
def name = data['name']
|
#sort_order ⇒ Object
2082
|
# File 'lib/carddb/collection.rb', line 2082
def sort_order = data['sortOrder']
|
2081
|
# File 'lib/carddb/collection.rb', line 2081
def tags = data['tags'] || []
|
#updated_at ⇒ Object
2087
|
# File 'lib/carddb/collection.rb', line 2087
def updated_at = parse_time(data['updatedAt'])
|