Class: Caboose::BlockTypeSummary

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/caboose/block_type_summary.rb

Instance Method Summary collapse

Instance Method Details

#parse_api_hash(h) ⇒ Object



16
17
18
19
# File 'app/models/caboose/block_type_summary.rb', line 16

def parse_api_hash(h)    
  self.name        = h['name']
  self.description = h['description']                
end

#sourceObject



12
13
14
# File 'app/models/caboose/block_type_summary.rb', line 12

def source
  self.block_type_source
end