Sha256: 65191823bb87ea627ca9e1d4cdadcbb2fd941259ddf5ae7812b30c592fda0ef3

Contents?: true

Size: 326 Bytes

Versions: 7

Compression:

Stored size: 326 Bytes

Contents

require "support/protobuf/author.pb"

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

  attribute :guid, :default => lambda { 100 }
  attribute :name, :default => "John Doe"
  attribute :books, :default => []
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_remote-5.0.1 spec/support/models/default_author.rb
active_remote-5.1.1 spec/support/models/default_author.rb
active_remote-5.1.0 spec/support/models/default_author.rb
active_remote-5.0.0 spec/support/models/default_author.rb
active_remote-5.1.0.rc1 spec/support/models/default_author.rb
active_remote-5.0.0.rc1 spec/support/models/default_author.rb
active_remote-5.0.0.pre spec/support/models/default_author.rb