Sha256: c41985a77a61108eaa677e90e215d70806391ffd52e8edef9cabe382444de602

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require 'support/all/article_representer'

class Article
  include Roar::JSON
  include Roar::Hypermedia
  include ArticleRepresenter

  attr_accessor :title, :id

  def initialize(attrs = {})
    attrs.each_pair do |k, v|
      send("#{k}=", v)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-roar-0.4.1 spec/support/all/article.rb