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-5.0.0.pre spec/support/models/message_with_options.rb
active_remote-3.3.1 spec/support/models/message_with_options.rb
active_remote-3.3.0 spec/support/models/message_with_options.rb
active_remote-3.2.2 spec/support/models/message_with_options.rb
active_remote-3.2.1 spec/support/models/message_with_options.rb
active_remote-3.2.0 spec/support/models/message_with_options.rb
active_remote-3.2.0.pre spec/support/models/message_with_options.rb
active_remote-3.1.3 spec/support/models/message_with_options.rb
active_remote-3.1.2 spec/support/models/message_with_options.rb
active_remote-3.1.2.pre spec/support/models/message_with_options.rb
active_remote-3.1.1 spec/support/models/message_with_options.rb
active_remote-3.1.0 spec/support/models/message_with_options.rb
active_remote-3.0.0 spec/support/models/message_with_options.rb
active_remote-3.0.0.pre1 spec/support/models/message_with_options.rb
active_remote-2.4.0 spec/support/models/message_with_options.rb
active_remote-2.3.5 spec/support/models/message_with_options.rb
active_remote-2.3.4 spec/support/models/message_with_options.rb
active_remote-2.3.3 spec/support/models/message_with_options.rb
active_remote-2.3.3.pre spec/support/models/message_with_options.rb
active_remote-2.3.2 spec/support/models/message_with_options.rb