Class: Dropzone::RecordBase

Inherits:
Object
  • Object
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.

Direct Known Subclasses

Listing, MessageBase, Profile

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.blockchainObject

Returns the value of attribute blockchain.



31
32
33
# File 'lib/dropzone/record_base.rb', line 31

def blockchain
  @blockchain
end

Instance Method Details

#blockchainObject



15
16
17
# File 'lib/dropzone/record_base.rb', line 15

def blockchain; 
  RecordBase.blockchain
end

#errorsObject



21
22
23
24
# File 'lib/dropzone/record_base.rb', line 21

def errors
  validator.valid? self
  validator.errors
end

#valid?Boolean

Returns:

  • (Boolean)


19
# File 'lib/dropzone/record_base.rb', line 19

def valid?; validator.valid? self; end