Class: CardDB::RulesetValidationImpactDeck
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
#affected_entry_count ⇒ Object
2150
|
# File 'lib/carddb/collection.rb', line 2150
def affected_entry_count = data['affectedEntryCount']
|
#blocker_count ⇒ Object
2148
|
# File 'lib/carddb/collection.rb', line 2148
def blocker_count = data['blockerCount']
|
#deck_id ⇒ Object
2142
|
# File 'lib/carddb/collection.rb', line 2142
def deck_id = data['deckId']
|
#issues ⇒ Object
2152
2153
2154
|
# File 'lib/carddb/collection.rb', line 2152
def issues
@issues ||= (data['issues'] || []).map { |issue| DeckValidationIssue.new(issue, client: client) }
end
|
#slug ⇒ Object
2144
|
# File 'lib/carddb/collection.rb', line 2144
def slug = data['slug']
|
#state ⇒ Object
2145
|
# File 'lib/carddb/collection.rb', line 2145
def state = data['state']
|
#title ⇒ Object
2143
|
# File 'lib/carddb/collection.rb', line 2143
def title = data['title']
|
#unpublished_changes? ⇒ Boolean
2146
|
# File 'lib/carddb/collection.rb', line 2146
def unpublished_changes? = !!data['hasUnpublishedChanges']
|
#valid? ⇒ Boolean
2147
|
# File 'lib/carddb/collection.rb', line 2147
def valid? = !!data['valid']
|
#warning_count ⇒ Object
2149
|
# File 'lib/carddb/collection.rb', line 2149
def warning_count = data['warningCount']
|