Class: Ethscription

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/facetq/models/ethscription.rb

Overview

ApplicationRecord

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.required_initial_ownerObject



67
68
69
# File 'lib/facetq/models/ethscription.rb', line 67

def self.required_initial_owner
  "0x00000000000000000000000000000000000face7"
end

Instance Method Details

#contentObject



55
56
57
# File 'lib/facetq/models/ethscription.rb', line 55

def content
  content_uri[/.*?,(.*)/, 1]
end

#parsed_contentObject



59
60
61
# File 'lib/facetq/models/ethscription.rb', line 59

def parsed_content
  JSON.parse(content)
end

#processed?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/facetq/models/ethscription.rb', line 63

def processed?
  processing_state != "pending"
end