Sha256: 49c7b9c18efdbc8417cb2cb84ebdbae2fa49462e525fdae89cdca6811ff685ef

Contents?: true

Size: 303 Bytes

Versions: 7

Compression:

Stored size: 303 Bytes

Contents

class SessionResponse
  attr_accessor :session_id, :success

  def initialize
    self.session_id = "80b2bf99520cd795ff54e31af97917bc9e3a7c8c"
    self.success = true
  end

  def to_hash
    {
      session_id: session_id,
      success: success
    }
  end

  def to_json
    to_hash.to_json
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enceladus-0.0.8 spec/support/responses/session_response.rb
enceladus-0.0.7 spec/support/responses/session_response.rb
enceladus-0.0.6 spec/support/responses/session_response.rb
enceladus-0.0.5 spec/support/responses/session_response.rb
enceladus-0.0.4 spec/support/responses/session_response.rb
enceladus-0.0.3 spec/support/responses/session_response.rb
enceladus-0.0.2 spec/support/responses/session_response.rb