Sha256: 6f957cc557700618698e0c9eaa4cedc03430822d7354d67df09a4a033ac14d6c
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
module Troo module Remote class Member include Virtus.model(finalize: false) include Troo::RemoteModelHelpers attribute :id attribute :avatarHash attribute :bio attribute :bioData attribute :confirmed attribute :fullName attribute :idPremOrgsAdmin attribute :initials attribute :memberType attribute :products attribute :status attribute :url attribute :username attribute :avatarSource attribute :email attribute :gravatarHash attribute :idBoards attribute :idBoardsInvited attribute :idBoardsPinned attribute :idOrganizations attribute :idOrganizationsInvited attribute :loginTypes attribute :newEmail attribute :oneTimeMessagesDismissed attribute :prefs attribute :trophies attribute :uploadedAvatarHash attribute :premiumFeatures class << self # @return [Hash] def remote_options { mode: :member } end # @return [Hash] def by_board_id { endpoint: :members_by_board_id, query: { filter: :all } } end # @return [Hash] def by_member_id { endpoint: :member_by_id } end end # @return [Array] def associations [] end # @return [Class] def local_model Troo::Member end # @return [Hash] def adapted { external_id: id, username: username, email: email, full_name: fullName, initials: initials, avatar_id: avatarHash, bio: bio, url: url } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.15 | lib/troo/remote/member.rb |