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
2126
|
# File 'lib/carddb/collection.rb', line 2126
def affected_entry_count = data['affectedEntryCount']
|
#blocker_count ⇒ Object
2124
|
# File 'lib/carddb/collection.rb', line 2124
def blocker_count = data['blockerCount']
|
#deck_id ⇒ Object
2118
|
# File 'lib/carddb/collection.rb', line 2118
def deck_id = data['deckId']
|
#issues ⇒ Object
2128
2129
2130
|
# File 'lib/carddb/collection.rb', line 2128
def issues
@issues ||= (data['issues'] || []).map { |issue| DeckValidationIssue.new(issue, client: client) }
end
|
#slug ⇒ Object
2120
|
# File 'lib/carddb/collection.rb', line 2120
def slug = data['slug']
|
#state ⇒ Object
2121
|
# File 'lib/carddb/collection.rb', line 2121
def state = data['state']
|
#title ⇒ Object
2119
|
# File 'lib/carddb/collection.rb', line 2119
def title = data['title']
|
#unpublished_changes? ⇒ Boolean
2122
|
# File 'lib/carddb/collection.rb', line 2122
def unpublished_changes? = !!data['hasUnpublishedChanges']
|
#valid? ⇒ Boolean
2123
|
# File 'lib/carddb/collection.rb', line 2123
def valid? = !!data['valid']
|
#warning_count ⇒ Object
2125
|
# File 'lib/carddb/collection.rb', line 2125
def warning_count = data['warningCount']
|