Class: RecordStore::Record::A
- Inherits:
-
RecordStore::Record
- Object
- RecordStore::Record
- RecordStore::Record::A
- Defined in:
- lib/record_store/record/a.rb
Constant Summary
Constants inherited from RecordStore::Record
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
Attributes inherited from RecordStore::Record
Instance Method Summary collapse
-
#initialize(record) ⇒ A
constructor
A new instance of A.
- #rdata ⇒ Object
- #rdata_txt ⇒ Object
Methods inherited from RecordStore::Record
#==, build_from_yaml_definition, ensure_ends_with_dot, ensure_ends_without_dot, escape, #hash, #key, #log!, long_quote, needs_long_quotes?, quote, #to_hash, #to_json, #to_s, #type, unescape, unlong_quote, unquote, #wildcard?
Constructor Details
#initialize(record) ⇒ A
Returns a new instance of A.
8 9 10 11 |
# File 'lib/record_store/record/a.rb', line 8 def initialize(record) super self.address = record.fetch(:address) end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
3 4 5 |
# File 'lib/record_store/record/a.rb', line 3 def address @address end |
Instance Method Details
#rdata ⇒ Object
17 18 19 |
# File 'lib/record_store/record/a.rb', line 17 def rdata { address: address } end |
#rdata_txt ⇒ Object
21 22 23 |
# File 'lib/record_store/record/a.rb', line 21 def rdata_txt address end |