Sha256: 12ba3a3d7f2538fe992f74b1053d1adce8e3fed0693a56b2f8229dbba62fd941

Contents?: true

Size: 391 Bytes

Versions: 18

Compression:

Stored size: 391 Bytes

Contents

require 'support/protobuf/author.pb'

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

  attribute :guid
  attribute :name

  has_many :posts
  has_many :flagged_posts, :class_name => "::Post"
  has_many :bestseller_posts, :class_name => "::Post", :foreign_key => :bestseller_guid

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
active_remote-1.7.1 spec/support/models/author.rb
active_remote-1.7.0 spec/support/models/author.rb
active_remote-1.6.1 spec/support/models/author.rb
active_remote-1.6.0 spec/support/models/author.rb
active_remote-1.5.9 spec/support/models/author.rb
active_remote-1.5.8 spec/support/models/author.rb
active_remote-1.5.7 spec/support/models/author.rb
active_remote-1.5.6 spec/support/models/author.rb
active_remote-1.5.5 spec/support/models/author.rb
active_remote-1.5.4 spec/support/models/author.rb
active_remote-1.5.2 spec/support/models/author.rb
active_remote-1.5.1 spec/support/models/author.rb
active_remote-1.5.0 spec/support/models/author.rb
active_remote-1.4.1 spec/support/models/author.rb
active_remote-1.4.0 spec/support/models/author.rb
active_remote-1.3.3 spec/support/models/author.rb
active_remote-1.3.2 spec/support/models/author.rb
active_remote-1.3.1 spec/support/models/author.rb