Class: KodiClient::Extensions::Creatable::CreateMap

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_listObject (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

#typeObject (readonly)

Returns the value of attribute type.



123
124
125
# File 'lib/kodi_client/extensions/creatable.rb', line 123

def type
  @type
end