Class: Cadenya::Types::ProfileSpec
- Inherits:
-
Object
- Object
- Cadenya::Types::ProfileSpec
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email: nil, name: nil, type: nil) ⇒ ProfileSpec
constructor
A new instance of ProfileSpec.
- #to_h ⇒ Object
Constructor Details
#initialize(email: nil, name: nil, type: nil) ⇒ ProfileSpec
Returns a new instance of ProfileSpec.
4636 4637 4638 4639 4640 |
# File 'lib/cadenya/types.rb', line 4636 def initialize(email: nil, name: nil, type: nil) @email = email @name = name @type = type end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
4634 4635 4636 |
# File 'lib/cadenya/types.rb', line 4634 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4634 4635 4636 |
# File 'lib/cadenya/types.rb', line 4634 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4634 4635 4636 |
# File 'lib/cadenya/types.rb', line 4634 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
4642 4643 4644 4645 4646 4647 4648 |
# File 'lib/cadenya/types.rb', line 4642 def self.from_json(data) new( email: data["email"], name: data["name"], type: data["type"], ) end |