Class: Evntaly::User
- Inherits:
-
Object
- Object
- Evntaly::User
- Defined in:
- lib/evntaly/user.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#email ⇒ Object
Returns the value of attribute email.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#organization ⇒ Object
Returns the value of attribute organization.
Instance Method Summary collapse
-
#initialize(id:, email:, full_name:, organization:, data:) ⇒ User
constructor
A new instance of User.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize(id:, email:, full_name:, organization:, data:) ⇒ User
Returns a new instance of User.
5 6 7 8 9 10 11 |
# File 'lib/evntaly/user.rb', line 5 def initialize(id:, email:, full_name:, organization:, data:) @id = id @email = email @full_name = full_name @organization = organization @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/evntaly/user.rb', line 3 def data @data end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/evntaly/user.rb', line 3 def email @email end |
#full_name ⇒ Object
Returns the value of attribute full_name.
3 4 5 |
# File 'lib/evntaly/user.rb', line 3 def full_name @full_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/evntaly/user.rb', line 3 def id @id end |
#organization ⇒ Object
Returns the value of attribute organization.
3 4 5 |
# File 'lib/evntaly/user.rb', line 3 def organization @organization end |
Instance Method Details
#to_json(*_args) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/evntaly/user.rb', line 13 def to_json(*_args) { id: @id, email: @email, full_name: @full_name, organization: @organization, data: @data }.to_json end |