Sha256: 158b28a52875c29d924a7bbe81fd24f06c2a856ece88fb7a43d350469213faf5
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 [] 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.11 | lib/troo/remote/member.rb |