Sha256: 1eb2abbe407cef739e2a6e05a9ac46d58d6577dc0d9f82c72eddb8a00ff8a7c3

Contents?: true

Size: 289 Bytes

Versions: 77

Compression:

Stored size: 289 Bytes

Contents

##
# Define a generic message with options that behaves like a protobuf search response
#
class MessageWithOptions
  attr_accessor :records, :options

  def initialize(attributes = {})
    @records = attributes.fetch(:records, nil)
    @options = attributes.fetch(:options, nil)
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
active_remote-7.1.0 spec/support/models/message_with_options.rb
active_remote-6.0.3 spec/support/models/message_with_options.rb
active_remote-6.1.2 spec/support/models/message_with_options.rb
active_remote-7.0.0 spec/support/models/message_with_options.rb
active_remote-6.1.1 spec/support/models/message_with_options.rb
active_remote-6.1.0 spec/support/models/message_with_options.rb
active_remote-6.0.2 spec/support/models/message_with_options.rb
active_remote-6.0.1 spec/support/models/message_with_options.rb
active_remote-6.0.0.beta spec/support/models/message_with_options.rb
active_remote-5.2.0 spec/support/models/message_with_options.rb
active_remote-5.2.0.beta spec/support/models/message_with_options.rb
active_remote-3.3.3 spec/support/models/message_with_options.rb
active_remote-5.2.0.alpha spec/support/models/message_with_options.rb
active_remote-3.3.2 spec/support/models/message_with_options.rb
active_remote-5.0.1 spec/support/models/message_with_options.rb
active_remote-5.1.1 spec/support/models/message_with_options.rb
active_remote-5.1.0 spec/support/models/message_with_options.rb
active_remote-5.0.0 spec/support/models/message_with_options.rb
active_remote-5.1.0.rc1 spec/support/models/message_with_options.rb
active_remote-5.0.0.rc1 spec/support/models/message_with_options.rb