Class: HasHelpers::Cards::RemoteRole
- Inherits:
-
Struct
- Object
- Struct
- HasHelpers::Cards::RemoteRole
- Defined in:
- lib/has_helpers/cards/remote_role.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #persisted? ⇒ Boolean
- #to_h ⇒ Object
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/has_helpers/cards/remote_role.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/has_helpers/cards/remote_role.rb', line 5 def name @name end |
#organization_id ⇒ Object
Returns the value of attribute organization_id
5 6 7 |
# File 'lib/has_helpers/cards/remote_role.rb', line 5 def organization_id @organization_id end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
12 13 14 |
# File 'lib/has_helpers/cards/remote_role.rb', line 12 def ==(other) other.is_a?(RemoteRole) && other.id == id end |
#persisted? ⇒ Boolean
8 9 10 |
# File 'lib/has_helpers/cards/remote_role.rb', line 8 def persisted? true end |
#to_h ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/has_helpers/cards/remote_role.rb', line 18 def to_h { id: id, name: name, organization_id: organization_id } end |