Class: KudagoClient::Entities::Role
- Inherits:
-
Object
- Object
- KudagoClient::Entities::Role
- Defined in:
- lib/kudago_client/entities/role.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
id - идентификатор name - название роли name_plural - название роли во множественном числе.
-
#name ⇒ Object
readonly
id - идентификатор name - название роли name_plural - название роли во множественном числе.
-
#name_plural ⇒ Object
readonly
id - идентификатор name - название роли name_plural - название роли во множественном числе.
-
#slug ⇒ Object
readonly
id - идентификатор name - название роли name_plural - название роли во множественном числе.
Instance Method Summary collapse
-
#initialize(id: nil, slug: nil, name: nil, name_plural: nil, lang: "ru") ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(id: nil, slug: nil, name: nil, name_plural: nil, lang: "ru") ⇒ Role
Returns a new instance of Role.
11 12 13 14 15 16 17 |
# File 'lib/kudago_client/entities/role.rb', line 11 def initialize(id: nil, slug: nil, name: nil, name_plural: nil, lang: "ru") @id = id @slug = slug @name = name @name_plural = name_plural @lang = lang end |
Instance Attribute Details
#id ⇒ Object (readonly)
id - идентификатор name - название роли name_plural - название роли во множественном числе
9 10 11 |
# File 'lib/kudago_client/entities/role.rb', line 9 def id @id end |
#name ⇒ Object (readonly)
id - идентификатор name - название роли name_plural - название роли во множественном числе
9 10 11 |
# File 'lib/kudago_client/entities/role.rb', line 9 def name @name end |
#name_plural ⇒ Object (readonly)
id - идентификатор name - название роли name_plural - название роли во множественном числе
9 10 11 |
# File 'lib/kudago_client/entities/role.rb', line 9 def name_plural @name_plural end |
#slug ⇒ Object (readonly)
id - идентификатор name - название роли name_plural - название роли во множественном числе
9 10 11 |
# File 'lib/kudago_client/entities/role.rb', line 9 def slug @slug end |