Class: Vedeu::Composition

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/models/composition.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



12
13
14
15
16
# File 'lib/vedeu/models/composition.rb', line 12

def to_json
  {
    interfaces: interfaces
  }.to_json
end

#to_sObject



18
19
20
# File 'lib/vedeu/models/composition.rb', line 18

def to_s
  interfaces.map(&:to_s).join
end