Sha256: 2f7fee49efc283ca8ff81f617090c59654133ca40521d22566354ba9fe101a60

Contents?: true

Size: 899 Bytes

Versions: 8

Compression:

Stored size: 899 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 language(language)
          set :language, language
        end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
portatext-1.6.1 lib/portatext/command/api/me.rb
portatext-1.6.0 lib/portatext/command/api/me.rb
portatext-1.5.23 lib/portatext/command/api/me.rb
portatext-1.5.22 lib/portatext/command/api/me.rb
portatext-1.5.21 lib/portatext/command/api/me.rb
portatext-1.5.20 lib/portatext/command/api/me.rb
portatext-1.5.19 lib/portatext/command/api/me.rb
portatext-1.5.18 lib/portatext/command/api/me.rb