Class: ProveKeybase::SerializableUser

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Serialization
Defined in:
app/models/prove_keybase/serializable_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keybase_proofs, avatar_url) ⇒ SerializableUser

Returns a new instance of SerializableUser.



12
13
14
15
# File 'app/models/prove_keybase/serializable_user.rb', line 12

def initialize(keybase_proofs, avatar_url)
  @keybase_proofs = keybase_proofs
  @avatar_url = avatar_url
end

Instance Attribute Details

#avatar_urlObject

Returns the value of attribute avatar_url.



6
7
8
# File 'app/models/prove_keybase/serializable_user.rb', line 6

def avatar_url
  @avatar_url
end

#keybase_proofsObject

Returns the value of attribute keybase_proofs.



6
7
8
# File 'app/models/prove_keybase/serializable_user.rb', line 6

def keybase_proofs
  @keybase_proofs
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/models/prove_keybase/serializable_user.rb', line 8

def persisted?
  false
end