Sha256: 49992a09c42bd5d3b16c983cf25c9ee03673ef7f097d6cfa9306935008583bb1

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

module OpConnect
  class APIRequest
    autoload :Actor, "op_connect/api_request/actor"
    autoload :Resource, "op_connect/api_request/resource"

    attr_reader :request_id, :timestamp, :action, :result, :actor, :resource

    def initialize(options = {})
      @request_id = options["request_id"]
      @timestamp = options["timestamp"]
      @action = options["action"]
      @result = options["result"]
      @actor = Actor.new(options["actor"])
      @resource = Resource.new(options["resource"])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
op_connect-0.1.3 lib/op_connect/api_request.rb
op_connect-0.1.2 lib/op_connect/api_request.rb
op_connect-0.1.1 lib/op_connect/api_request.rb