Sha256: fe37ccddcefef2d5905d36d3948759693e7c868401df1fa51ae0b5b44588fe55

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 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, :string, :default => lambda { 100 }
  attribute :name, :string, :default => "John Doe"
  attribute :books, :default => []
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_remote-6.0.3 spec/support/models/default_author.rb
active_remote-6.1.2 spec/support/models/default_author.rb
active_remote-7.0.0 spec/support/models/default_author.rb
active_remote-6.1.1 spec/support/models/default_author.rb
active_remote-6.1.0 spec/support/models/default_author.rb
active_remote-6.0.2 spec/support/models/default_author.rb
active_remote-6.0.1 spec/support/models/default_author.rb
active_remote-6.0.0.beta spec/support/models/default_author.rb
active_remote-5.2.0 spec/support/models/default_author.rb
active_remote-5.2.0.beta spec/support/models/default_author.rb
active_remote-5.2.0.alpha spec/support/models/default_author.rb