Class: WCKBAPI::Provider
- Inherits:
-
Object
- Object
- WCKBAPI::Provider
- Defined in:
- lib/wckbapi/provider.rb
Instance Attribute Summary collapse
-
#avaiable_entries ⇒ Object
Returns the value of attribute avaiable_entries.
-
#available_collections ⇒ Object
Returns the value of attribute available_collections.
-
#id ⇒ Object
Returns the value of attribute id.
-
#provider_name ⇒ Object
Returns the value of attribute provider_name.
-
#provider_uid ⇒ Object
Returns the value of attribute provider_uid.
-
#selected_entries ⇒ Object
Returns the value of attribute selected_entries.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Provider
constructor
A new instance of Provider.
- #load(item) ⇒ Object
Constructor Details
#initialize ⇒ Provider
Returns a new instance of Provider.
6 7 |
# File 'lib/wckbapi/provider.rb', line 6 def initialize() end |
Instance Attribute Details
#avaiable_entries ⇒ Object
Returns the value of attribute avaiable_entries.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def avaiable_entries @avaiable_entries end |
#available_collections ⇒ Object
Returns the value of attribute available_collections.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def available_collections @available_collections end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def id @id end |
#provider_name ⇒ Object
Returns the value of attribute provider_name.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def provider_name @provider_name end |
#provider_uid ⇒ Object
Returns the value of attribute provider_uid.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def provider_uid @provider_uid end |
#selected_entries ⇒ Object
Returns the value of attribute selected_entries.
4 5 6 |
# File 'lib/wckbapi/provider.rb', line 4 def selected_entries @selected_entries end |
#title ⇒ Object
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 |