Module: Ccp::Data

Included in:
Receivers::Base
Defined in:
lib/ccp/data.rb

Defined Under Namespace

Modules: Ext

Instance Method Summary collapse

Instance Method Details

#dataObject



25
26
27
# File 'lib/ccp/data.rb', line 25

def data
  @data ||= Typed::Hash.new.extend Ext
end

#data?(key) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/ccp/data.rb', line 29

def data?(key)
  data.set?(key)
end

#parse!(options) ⇒ Object



33
34
35
# File 'lib/ccp/data.rb', line 33

def parse!(options)
  data.merge(options)
end