Class: PRX::Model::License

Inherits:
Base
  • Object
show all
Includes:
Representer::Full::LicenseRepresenter, Roar::JSON
Defined in:
lib/prx/model/license.rb

Constant Summary collapse

WEBSITE_USAGE =
['as a free MP3 download and stream', 'as a stream only', 'only with permission']
ALLOW_EDIT =
['only with permission', 'without further permission', 'never']

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Method Summary

Methods inherited from Base

#class_path_part, #find_by_id, #initialize, #request, request, #save

Constructor Details

This class inherits a constructor from PRX::Model::Base

Instance Attribute Details

#additional_termsObject

Returns the value of attribute additional_terms.



11
12
13
# File 'lib/prx/model/license.rb', line 11

def additional_terms
  @additional_terms
end

#allow_editObject

Returns the value of attribute allow_edit.



11
12
13
# File 'lib/prx/model/license.rb', line 11

def allow_edit
  @allow_edit
end

#website_usageObject

Returns the value of attribute website_usage.



11
12
13
# File 'lib/prx/model/license.rb', line 11

def website_usage
  @website_usage
end