Sha256: a4d71e91b2d74794aa6342b9c48ea60d3ae90132db45a966c7a4e35cc45c1e97

Contents?: true

Size: 821 Bytes

Versions: 41

Compression:

Stored size: 821 Bytes

Contents

module PortaText
  module Command
    module Api
      # The me endpoint.
      # https://github.com/PortaText/docs/wiki/REST-API#api_me
      #
      # Author::    Marcelo Gornstein (mailto:marcelog@portatext.com)
      # Copyright:: Copyright (c) 2015 PortaText
      # License::   Apache-2.0
      class Me < Base
        def name(first, last)
          set :first_name, first
          set :last_name, last
        end

        def company(company)
          set :company, company
        end

        def email(email)
          set :email, email
        end

        def callback_url(callback_url)
          set :callback_url, callback_url
        end

        def timezone(timezone)
          set :timezone, timezone
        end

        def endpoint(_method)
          'me'
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
portatext-1.4.2 lib/portatext/command/api/me.rb
portatext-1.4.1 lib/portatext/command/api/me.rb
portatext-1.4.0 lib/portatext/command/api/me.rb
portatext-1.3.1 lib/portatext/command/api/me.rb
portatext-1.3.0 lib/portatext/command/api/me.rb
portatext-1.2.0 lib/portatext/command/api/me.rb
portatext-1.1.11 lib/portatext/command/api/me.rb
portatext-1.1.10 lib/portatext/command/api/me.rb
portatext-1.1.9 lib/portatext/command/api/me.rb
portatext-1.1.8 lib/portatext/command/api/me.rb
portatext-1.1.7 lib/portatext/command/api/me.rb
portatext-1.1.6 lib/portatext/command/api/me.rb
portatext-1.1.5 lib/portatext/command/api/me.rb
portatext-1.1.4 lib/portatext/command/api/me.rb
portatext-1.1.3 lib/portatext/command/api/me.rb
portatext-1.1.2 lib/portatext/command/api/me.rb
portatext-1.1.1 lib/portatext/command/api/me.rb
portatext-1.1.0 lib/portatext/command/api/me.rb
portatext-1.0.0 lib/portatext/command/api/me.rb
portatext-1.0.0.pre lib/portatext/command/api/me.rb