Class: ProveKeybase::SerializableUser
- Inherits:
-
Object
- Object
- ProveKeybase::SerializableUser
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Serialization
- Defined in:
- app/models/prove_keybase/serializable_user.rb
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#keybase_proofs ⇒ Object
Returns the value of attribute keybase_proofs.
Instance Method Summary collapse
-
#initialize(keybase_proofs, avatar_url) ⇒ SerializableUser
constructor
A new instance of SerializableUser.
- #persisted? ⇒ Boolean
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_url ⇒ Object
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_proofs ⇒ Object
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
8 9 10 |
# File 'app/models/prove_keybase/serializable_user.rb', line 8 def persisted? false end |