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-1.6.0 spec/support/models/message_with_options.rb
active_remote-1.5.9 spec/support/models/message_with_options.rb
active_remote-1.5.8 spec/support/models/message_with_options.rb
active_remote-1.5.7 spec/support/models/message_with_options.rb
active_remote-1.5.6 spec/support/models/message_with_options.rb
active_remote-1.5.5 spec/support/models/message_with_options.rb
active_remote-1.5.4 spec/support/models/message_with_options.rb
active_remote-1.5.2 spec/support/models/message_with_options.rb
active_remote-1.5.1 spec/support/models/message_with_options.rb
active_remote-1.5.0 spec/support/models/message_with_options.rb
active_remote-1.4.1 spec/support/models/message_with_options.rb
active_remote-1.4.0 spec/support/models/message_with_options.rb
active_remote-1.3.3 spec/support/models/message_with_options.rb
active_remote-1.3.2 spec/support/models/message_with_options.rb
active_remote-1.3.1 spec/support/models/message_with_options.rb
active_remote-1.3.0 spec/support/models/message_with_options.rb
active_remote-1.2.1 spec/support/models/message_with_options.rb