module Chaindotcom::Ghostly

Attributes

data_source[RW]
load_state[W]

Public Class Methods

included(other) click to toggle source
# File lib/chaindotcom/address.rb, line 15
def self.included(other)
  other.extend(Macros)
end

Public Instance Methods

load() click to toggle source
# File lib/chaindotcom/address.rb, line 26
def load
  return if load_state == :loaded
  data_source.load(self)
end
load_state() click to toggle source
# File lib/chaindotcom/address.rb, line 22
def load_state
  @load_state ||= :ghost
end