Sha256: f8fd1b51919b48a7342776cd9c5ece77330a763bddfe1c4044bdbaa0203d55ea

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 Bytes

Contents

class RequestTokenResponse
  attr_accessor :expires_at, :request_token, :success

  def initialize
    self.expires_at = "2012-02-09 19:50:25 UTC"
    self.request_token = "641bf16c663db167c6cffcdff41126039d4445bf"
    self.success = true
  end

  def to_hash
    {
      expires_at: expires_at,
      request_token: request_token,
      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/request_token_response.rb
enceladus-0.0.7 spec/support/responses/request_token_response.rb
enceladus-0.0.6 spec/support/responses/request_token_response.rb
enceladus-0.0.5 spec/support/responses/request_token_response.rb
enceladus-0.0.4 spec/support/responses/request_token_response.rb
enceladus-0.0.3 spec/support/responses/request_token_response.rb
enceladus-0.0.2 spec/support/responses/request_token_response.rb