Class: KudagoClient::Entities::EventCategory

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/kudago_client/entities/event_category.rb', line 6

def id
  @id
end

#langObject (readonly)

Returns the value of attribute lang.



6
7
8
# File 'lib/kudago_client/entities/event_category.rb', line 6

def lang
  @lang
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/kudago_client/entities/event_category.rb', line 6

def name
  @name
end

#slugObject (readonly)

Returns the value of attribute slug.



6
7
8
# File 'lib/kudago_client/entities/event_category.rb', line 6

def slug
  @slug
end