Class: KodiClient::Extensions::Creatable::CreateMap
- Inherits:
-
Object
- Object
- KodiClient::Extensions::Creatable::CreateMap
- Defined in:
- lib/kodi_client/extensions/creatable.rb
Overview
mapping class with the type and if it is a list field or not
Instance Attribute Summary collapse
-
#is_list ⇒ Object
readonly
Returns the value of attribute is_list.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, is_list = false) ⇒ CreateMap
constructor
A new instance of CreateMap.
Constructor Details
#initialize(type, is_list = false) ⇒ CreateMap
Returns a new instance of CreateMap.
125 126 127 128 |
# File 'lib/kodi_client/extensions/creatable.rb', line 125 def initialize(type, is_list = false) @type = type @is_list = is_list end |
Instance Attribute Details
#is_list ⇒ Object (readonly)
Returns the value of attribute is_list.
123 124 125 |
# File 'lib/kodi_client/extensions/creatable.rb', line 123 def is_list @is_list end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
123 124 125 |
# File 'lib/kodi_client/extensions/creatable.rb', line 123 def type @type end |