Class: Formatter::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/petro/formatter/model.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Model

Returns a new instance of Model.



4
5
6
# File 'lib/petro/formatter/model.rb', line 4

def initialize(attributes)
  @attributes = attributes.fetch('attributes', [])
end

Instance Method Details

#attributesObject



8
9
10
# File 'lib/petro/formatter/model.rb', line 8

def attributes
  build_code
end