Class: Dropzone::RecordBase
- Inherits:
-
Object
- Object
- Dropzone::RecordBase
show all
- Defined in:
- lib/dropzone/record_base.rb
Overview
This lets us set connection parameters across the entire library. A cattr_inheritable-esque implementation might be worth adding at some point.
Class Attribute Summary collapse
Instance Method Summary
collapse
Class Attribute Details
.blockchain ⇒ Object
Returns the value of attribute blockchain.
31
32
33
|
# File 'lib/dropzone/record_base.rb', line 31
def blockchain
@blockchain
end
|
Instance Method Details
#blockchain ⇒ Object
15
16
17
|
# File 'lib/dropzone/record_base.rb', line 15
def blockchain;
RecordBase.blockchain
end
|
#errors ⇒ Object
21
22
23
24
|
# File 'lib/dropzone/record_base.rb', line 21
def errors
validator.valid? self
validator.errors
end
|
#valid? ⇒ Boolean
19
|
# File 'lib/dropzone/record_base.rb', line 19
def valid?; validator.valid? self; end
|