Sha256: 8dcc2a2e81e36a52f29137001a8cd170dbb558c821a5f7fbcf99d726d1fb23a9

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 Bytes

Contents

module Evernote
  module EDAM
    module Type
      class User

        # Determines if this user is a part of a business
        #
        # @return [Boolean]
        def belongs_to_business?
          self.accounting.businessId != nil
        end

        # Returns the business name
        #
        # @return [String]
        def business_name
          self.accounting.businessName
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
evernote_oauth-0.2.3 lib/evernote/edam/type/user.rb
evernote_oauth-0.2.2 lib/evernote/edam/type/user.rb
evernote_oauth-0.2.1 lib/evernote/edam/type/user.rb
evernote_oauth-0.2.0 lib/evernote/edam/type/user.rb