Class: AfterbanksPSD2::Resource
- Inherits:
-
Object
- Object
- AfterbanksPSD2::Resource
show all
- Defined in:
- lib/afterbanks_psd2/resource.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(data) ⇒ Resource
Returns a new instance of Resource.
3
4
5
6
7
|
# File 'lib/afterbanks_psd2/resource.rb', line 3
def initialize(data)
data = sanitize_data(data)
generate_attr_readers
set_data(data)
end
|
Class Method Details
80
81
82
|
# File 'lib/afterbanks_psd2/resource.rb', line 80
def fields_information
@fields_information
end
|
.has_fields(fields_information) ⇒ Object
84
85
86
|
# File 'lib/afterbanks_psd2/resource.rb', line 84
def has_fields(fields_information)
@fields_information = fields_information
end
|
Instance Method Details
9
10
11
|
# File 'lib/afterbanks_psd2/resource.rb', line 9
def fields_information
self.class.fields_information
end
|