Class: WCKBAPI::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/wckbapi/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProvider

Returns a new instance of Provider.



6
7
# File 'lib/wckbapi/provider.rb', line 6

def initialize()
end

Instance Attribute Details

#avaiable_entriesObject

Returns the value of attribute avaiable_entries.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def avaiable_entries
  @avaiable_entries
end

#available_collectionsObject

Returns the value of attribute available_collections.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def available_collections
  @available_collections
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def id
  @id
end

#provider_nameObject

Returns the value of attribute provider_name.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def provider_name
  @provider_name
end

#provider_uidObject

Returns the value of attribute provider_uid.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def provider_uid
  @provider_uid
end

#selected_entriesObject

Returns the value of attribute selected_entries.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def selected_entries
  @selected_entries
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/wckbapi/provider.rb', line 4

def title
  @title
end

Instance Method Details

#load(item) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/wckbapi/provider.rb', line 8

def load(item)
	@id = item['id']
@title = item['title']
 	@provider_uid = item['kb:provider_uid']
	@provider_name = item['kb:provider_name']
	@available_entries = item['kb:available_entries']
	@selected_entries = item['kb:selected_entries']
	@available_collections = item['kb:available_collections']
end