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
2065
|
# File 'lib/carddb/collection.rb', line 2065
def archived? = !!data['isArchived']
|
#archived_at ⇒ Object
2064
|
# File 'lib/carddb/collection.rb', line 2064
def archived_at = parse_time(data['archivedAt'])
|
#created_at ⇒ Object
2066
|
# File 'lib/carddb/collection.rb', line 2066
def created_at = parse_time(data['createdAt'])
|
#current_version ⇒ Object
2069
2070
2071
|
# File 'lib/carddb/collection.rb', line 2069
def current_version
@current_version ||= data['currentVersion'] ? RulesetVersion.new(data['currentVersion'], client: client) : nil
end
|
#current_version_id ⇒ Object
2063
|
# File 'lib/carddb/collection.rb', line 2063
def current_version_id = data['currentVersionId']
|
#description ⇒ Object
2060
|
# File 'lib/carddb/collection.rb', line 2060
def description = data['description']
|
#game ⇒ Object
2057
|
# File 'lib/carddb/collection.rb', line 2057
def game = data['game']
|
#game_id ⇒ Object
2056
|
# File 'lib/carddb/collection.rb', line 2056
def game_id = data['gameId']
|
#id ⇒ Object
2055
|
# File 'lib/carddb/collection.rb', line 2055
def id = data['id']
|
#key ⇒ Object
2058
|
# File 'lib/carddb/collection.rb', line 2058
def key = data['key']
|
#name ⇒ Object
2059
|
# File 'lib/carddb/collection.rb', line 2059
def name = data['name']
|
#sort_order ⇒ Object
2062
|
# File 'lib/carddb/collection.rb', line 2062
def sort_order = data['sortOrder']
|
2061
|
# File 'lib/carddb/collection.rb', line 2061
def tags = data['tags'] || []
|
#updated_at ⇒ Object
2067
|
# File 'lib/carddb/collection.rb', line 2067
def updated_at = parse_time(data['updatedAt'])
|