Module: Vx::Builder::Source::Serializable

Included in:
Vx::Builder::Source
Defined in:
lib/vx/builder/source/serializable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
# File 'lib/vx/builder/source/serializable.rb', line 10

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#to_hash ⇒ Object



18
19
20
# File 'lib/vx/builder/source/serializable.rb', line 18

def to_hash
  attributes
end

#to_yaml ⇒ Object



14
15
16
# File 'lib/vx/builder/source/serializable.rb', line 14

def to_yaml
  YAML.dump(attributes)
end