Class: KudagoClient::Entities::ListItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_restrictionObject

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

#ctypeObject

Returns the value of attribute ctype.



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

def ctype
  @ctype
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#item_urlObject

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

#langObject

Returns the value of attribute lang.



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

def lang
  @lang
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end