Sha256: 150e11e677157d2135c123b3615053c341c93370286874014983827763d18909

Contents?: true

Size: 326 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
active_remote-3.3.3 spec/support/models/default_author.rb
active_remote-3.3.2 spec/support/models/default_author.rb
active_remote-3.3.1 spec/support/models/default_author.rb
active_remote-3.3.0 spec/support/models/default_author.rb
active_remote-3.2.2 spec/support/models/default_author.rb
active_remote-3.2.1 spec/support/models/default_author.rb
active_remote-3.2.0 spec/support/models/default_author.rb
active_remote-3.2.0.pre spec/support/models/default_author.rb
active_remote-3.1.3 spec/support/models/default_author.rb
active_remote-3.1.2 spec/support/models/default_author.rb
active_remote-3.1.2.pre spec/support/models/default_author.rb
active_remote-3.1.1 spec/support/models/default_author.rb
active_remote-3.1.0 spec/support/models/default_author.rb
active_remote-3.0.0 spec/support/models/default_author.rb
active_remote-3.0.0.pre1 spec/support/models/default_author.rb
active_remote-2.4.0 spec/support/models/default_author.rb
active_remote-2.3.5 spec/support/models/default_author.rb
active_remote-2.3.4 spec/support/models/default_author.rb