Class: CardDB::ScanWebhookState

Inherits:
Resource
  • Object
show all
Defined in:
lib/carddb/collection.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #data

Instance Method Summary collapse

Methods inherited from Resource

#[], #initialize, #key?, #to_h, #to_json

Constructor Details

This class inherits a constructor from CardDB::Resource

Instance Method Details

#attempt_countObject



1027
# File 'lib/carddb/collection.rb', line 1027

def attempt_count = data['attemptCount']

#configured?Boolean

Returns:

  • (Boolean)


1023
# File 'lib/carddb/collection.rb', line 1023

def configured? = !!data['configured']

#delivered_atObject



1030
# File 'lib/carddb/collection.rb', line 1030

def delivered_at = parse_time(data['deliveredAt'])

#last_attempt_atObject



1029
# File 'lib/carddb/collection.rb', line 1029

def last_attempt_at = parse_time(data['lastAttemptAt'])

#last_errorObject



1032
# File 'lib/carddb/collection.rb', line 1032

def last_error = data['lastError']

#last_status_codeObject



1031
# File 'lib/carddb/collection.rb', line 1031

def last_status_code = data['lastStatusCode']

#latest_delivery_idObject



1025
# File 'lib/carddb/collection.rb', line 1025

def latest_delivery_id = data['latestDeliveryId']

#next_attempt_atObject



1028
# File 'lib/carddb/collection.rb', line 1028

def next_attempt_at = parse_time(data['nextAttemptAt'])

#statusObject



1026
# File 'lib/carddb/collection.rb', line 1026

def status = data['status']

#urlObject



1024
# File 'lib/carddb/collection.rb', line 1024

def url = data['url']