class Mumukit::Auth::Profile

Constants

FIELDS

Attributes

attributes[RW]

Public Class Methods

extract(profile_like) click to toggle source
# File lib/mumuki/profile.rb, line 10
def self.extract(profile_like)
  new profile_like.as_json(only: FIELDS).with_indifferent_access
end
new(attributes) click to toggle source
# File lib/mumuki/profile.rb, line 6
def initialize(attributes)
  @attributes = attributes
end

Public Instance Methods

==(other) click to toggle source
# File lib/mumuki/profile.rb, line 14
def ==(other)
  other.class == self.class && other.attributes == self.attributes
end