Class: StrawberryAPI::Library
- Inherits:
-
Object
- Object
- StrawberryAPI::Library
- Defined in:
- lib/strawberry_api/library.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#ingest_path ⇒ Object
Returns the value of attribute ingest_path.
-
#ingest_path_exists ⇒ Object
Returns the value of attribute ingest_path_exists.
-
#ingest_storage ⇒ Object
Returns the value of attribute ingest_storage.
-
#options ⇒ Object
Returns the value of attribute options.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Library
constructor
A new instance of Library.
Constructor Details
#initialize(params = {}) ⇒ Library
Returns a new instance of Library
12 13 14 15 16 |
# File 'lib/strawberry_api/library.rb', line 12 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k.gsub(/[!@#$%^&*?']/, '')}", v) unless v.nil? end end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/library.rb', line 5 def id @id end |
#ingest_path ⇒ Object
Returns the value of attribute ingest_path
7 8 9 |
# File 'lib/strawberry_api/library.rb', line 7 def ingest_path @ingest_path end |
#ingest_path_exists ⇒ Object
Returns the value of attribute ingest_path_exists
10 11 12 |
# File 'lib/strawberry_api/library.rb', line 10 def ingest_path_exists @ingest_path_exists end |
#ingest_storage ⇒ Object
Returns the value of attribute ingest_storage
8 9 10 |
# File 'lib/strawberry_api/library.rb', line 8 def ingest_storage @ingest_storage end |
#options ⇒ Object
Returns the value of attribute options
9 10 11 |
# File 'lib/strawberry_api/library.rb', line 9 def @options end |
#project_id ⇒ Object
Returns the value of attribute project_id
6 7 8 |
# File 'lib/strawberry_api/library.rb', line 6 def project_id @project_id end |