Class: StrawberryAPI::Library

Inherits:
Object
  • Object
show all
Defined in:
lib/strawberry_api/library.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id



5
6
7
# File 'lib/strawberry_api/library.rb', line 5

def id
  @id
end

#ingest_pathObject

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_existsObject

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_storageObject

Returns the value of attribute ingest_storage



8
9
10
# File 'lib/strawberry_api/library.rb', line 8

def ingest_storage
  @ingest_storage
end

#optionsObject

Returns the value of attribute options



9
10
11
# File 'lib/strawberry_api/library.rb', line 9

def options
  @options
end

#project_idObject

Returns the value of attribute project_id



6
7
8
# File 'lib/strawberry_api/library.rb', line 6

def project_id
  @project_id
end