Sha256: 6852396b04d6b0afdde22967f970442baec62e90cabbff9cc2d90e72f37605ae
Contents?: true
Size: 703 Bytes
Versions: 5
Compression:
Stored size: 703 Bytes
Contents
class ProductionCompanyResponse attr_accessor :description, :headquarters, :homepage, :id, :logo_path, :name, :parent_company def initialize self.description = "This is a sample description" self.headquarters = "San Francisco, California" self.homepage = "http://github.com/enceladus" self.id = 123 self.logo_path = "/pic.jpg" self.name = "Super Company" self.parent_company = "My Parent Company" end def to_hash { description: description, headquarters: headquarters, homepage: homepage, id: id, logo_path: logo_path, name: name, parent_company: parent_company, } end def to_json to_hash.to_json end end
Version data entries
5 entries across 5 versions & 1 rubygems