Class: KudagoClient::Entities::EventCategory
- Inherits:
-
Object
- Object
- KudagoClient::Entities::EventCategory
- Defined in:
- lib/kudago_client/entities/event_category.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(id: nil, slug: nil, name: nil, lang: "ru") ⇒ EventCategory
constructor
A new instance of EventCategory.
Constructor Details
#initialize(id: nil, slug: nil, name: nil, lang: "ru") ⇒ EventCategory
Returns a new instance of EventCategory.
8 9 10 11 12 13 |
# File 'lib/kudago_client/entities/event_category.rb', line 8 def initialize(id: nil, slug: nil, name: nil, lang: "ru") @id = id @slug = slug @name = name @lang = lang end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/kudago_client/entities/event_category.rb', line 6 def id @id end |
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
6 7 8 |
# File 'lib/kudago_client/entities/event_category.rb', line 6 def lang @lang end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/kudago_client/entities/event_category.rb', line 6 def name @name end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
6 7 8 |
# File 'lib/kudago_client/entities/event_category.rb', line 6 def slug @slug end |