Class: KudagoClient::Entities::ListItem
- Inherits:
-
Object
- Object
- KudagoClient::Entities::ListItem
- Defined in:
- lib/kudago_client/entities/list_item.rb
Instance Attribute Summary collapse
-
#age_restriction ⇒ Object
Returns the value of attribute age_restriction.
-
#ctype ⇒ Object
Returns the value of attribute ctype.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#item_url ⇒ Object
Returns the value of attribute item_url.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(lang:, id: nil, ctype: "listitem", title: nil, description: nil, item_url: nil, age_restriction: nil) ⇒ ListItem
constructor
A new instance of ListItem.
Constructor Details
#initialize(lang:, id: nil, ctype: "listitem", title: nil, description: nil, item_url: nil, age_restriction: nil) ⇒ ListItem
Returns a new instance of ListItem.
8 9 10 11 12 13 14 15 16 |
# File 'lib/kudago_client/entities/list_item.rb', line 8 def initialize(lang:, id: nil, ctype: "listitem", title: nil, description: nil, item_url: nil, age_restriction: nil) @lang = lang @id = id @ctype = ctype @title = title @description = description @item_url = item_url @age_restriction = age_restriction end |
Instance Attribute Details
#age_restriction ⇒ Object
Returns the value of attribute age_restriction.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def age_restriction @age_restriction end |
#ctype ⇒ Object
Returns the value of attribute ctype.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def ctype @ctype end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def id @id end |
#item_url ⇒ Object
Returns the value of attribute item_url.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def item_url @item_url end |
#lang ⇒ Object
Returns the value of attribute lang.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def lang @lang end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/kudago_client/entities/list_item.rb', line 6 def title @title end |