Sha256: 64e0ae509ef7486e7c0bd4e8c030379c42a5e1230cf0b710a17961e85341c594

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

require 'support/protobuf/post.pb'

##
# Define a generic class that inherits from active remote base
#
class Post < ::ActiveRemote::Base
  service_class ::Generic::Remote::PostService

  attribute :guid
  attribute :name
  attribute :author_guid

  belongs_to :author
  has_one :category

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_remote-1.2.1 spec/support/models/post.rb