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