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.5.17 lib/portatext/command/api/me.rb
portatext-1.5.16 lib/portatext/command/api/me.rb
portatext-1.5.15 lib/portatext/command/api/me.rb
portatext-1.5.14 lib/portatext/command/api/me.rb
portatext-1.5.13 lib/portatext/command/api/me.rb
portatext-1.5.12 lib/portatext/command/api/me.rb
portatext-1.5.11 lib/portatext/command/api/me.rb
portatext-1.5.10 lib/portatext/command/api/me.rb
portatext-1.5.9 lib/portatext/command/api/me.rb
portatext-1.5.8 lib/portatext/command/api/me.rb
portatext-1.5.7 lib/portatext/command/api/me.rb
portatext-1.5.6 lib/portatext/command/api/me.rb
portatext-1.5.5 lib/portatext/command/api/me.rb
portatext-1.5.4 lib/portatext/command/api/me.rb
portatext-1.5.3 lib/portatext/command/api/me.rb
portatext-1.5.2 lib/portatext/command/api/me.rb
portatext-1.5.1 lib/portatext/command/api/me.rb
portatext-1.5.0 lib/portatext/command/api/me.rb
portatext-1.4.4 lib/portatext/command/api/me.rb
portatext-1.4.3 lib/portatext/command/api/me.rb