Class: CKAN::Resource
- Inherits:
-
Object
- Object
- CKAN::Resource
- Defined in:
- lib/ckan/resource.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, format, description, hash) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(url, format, description, hash) ⇒ Resource
5 6 7 |
# File 'lib/ckan/resource.rb', line 5 def initialize(url, format, description, hash) @url, @format, @description, @hash = url, format, description, hash end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/ckan/resource.rb', line 3 def description @description end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
3 4 5 |
# File 'lib/ckan/resource.rb', line 3 def format @format end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
3 4 5 |
# File 'lib/ckan/resource.rb', line 3 def hash @hash end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/ckan/resource.rb', line 3 def url @url end |