Module: Chaindotcom::Ghostly
- Included in:
- Address
- Defined in:
- lib/chaindotcom/address.rb
Defined Under Namespace
Modules: Macros
Instance Attribute Summary collapse
-
#data_source ⇒ Object
Returns the value of attribute data_source.
- #load_state ⇒ Object
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#data_source ⇒ Object
Returns the value of attribute data_source.
19 20 21 |
# File 'lib/chaindotcom/address.rb', line 19 def data_source @data_source end |
#load_state ⇒ Object
22 23 24 |
# File 'lib/chaindotcom/address.rb', line 22 def load_state @load_state ||= :ghost end |
Class Method Details
.included(other) ⇒ Object
15 16 17 |
# File 'lib/chaindotcom/address.rb', line 15 def self.included(other) other.extend(Macros) end |
Instance Method Details
#load ⇒ Object
26 27 28 29 |
# File 'lib/chaindotcom/address.rb', line 26 def load return if load_state == :loaded data_source.load(self) end |