Sha256: dbf378df9dbf491294ff5939c04077acbe5ea15efaf9bd9cbef53ee0d2e3a2a0

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

require_relative "resource"
require_relative "redirect_uris"
require_relative "../handler/api_operations"

module Nylas
  # Application
  class Applications < Resource
    include ApiOperations::Get

    attr_reader :redirect_uris

    # Initializes the application.
    def initialize(sdk_instance)
      super(sdk_instance)
      @redirect_uris = RedirectUris.new(sdk_instance)
    end

    # Gets the application object.
    #
    # @return [Array(Hash, String)] Application object and API Request ID.
    def info
      get(path: "#{api_uri}/v3/applications")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nylas-6.0.0.beta.3 lib/nylas/resources/applications.rb
nylas-6.0.0.beta.2 lib/nylas/resources/applications.rb