Sha256: 8a87c42754cd0df3bcc01c94a1d47fe14b75eb72951830f9d669d2062ff65211
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
class Application include ActiveModel::Serializers::JSON include ActiveModel::Serializers::Xml attr_accessor :name, :url def initialize(attributes = {}) @name = attributes['name'] @url = attributes['url'] end def attributes { 'name' => name, 'url' => url } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resty-generators-0.7.3 | lib/generators/resty/setup/templates/application.rb |