Class: KudagoClient::Entities::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/kudago_client/entities/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

id - идентификатор name - название роли name_plural - название роли во множественном числе



9
10
11
# File 'lib/kudago_client/entities/role.rb', line 9

def id
  @id
end

#nameObject (readonly)

id - идентификатор name - название роли name_plural - название роли во множественном числе



9
10
11
# File 'lib/kudago_client/entities/role.rb', line 9

def name
  @name
end

#name_pluralObject (readonly)

id - идентификатор name - название роли name_plural - название роли во множественном числе



9
10
11
# File 'lib/kudago_client/entities/role.rb', line 9

def name_plural
  @name_plural
end

#slugObject (readonly)

id - идентификатор name - название роли name_plural - название роли во множественном числе



9
10
11
# File 'lib/kudago_client/entities/role.rb', line 9

def slug
  @slug
end