Sha256: 12bc8ad2e54c7d25b0a97e07196f8710ff84e4af971d70e5e430d03c23d4c777

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

class Feed < CurlyMustache::Base
  attribute :title, :string
  attribute :url, :string
  
  def send_attributes(attributes)
    { "BLOB" => Marshal.dump(attributes) }
  end
  
  def recv_attributes(attributes)
    Marshal.load(attributes["BLOB"])
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
curly_mustache-0.1.0 test/models/feed.rb