Class: KudagoClient::Entities::PlaceCategory
- Inherits:
-
Object
- Object
- KudagoClient::Entities::PlaceCategory
- Defined in:
- lib/kudago_client/entities/place_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") ⇒ PlaceCategory
constructor
A new instance of PlaceCategory.
Constructor Details
#initialize(id: nil, slug: nil, name: nil, lang: "ru") ⇒ PlaceCategory
Returns a new instance of PlaceCategory.
8 9 10 11 12 13 |
# File 'lib/kudago_client/entities/place_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/place_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/place_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/place_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/place_category.rb', line 6 def slug @slug end |