Module: ROM::LDAP::Relation::Exporting
- Included in:
- ROM::LDAP::Relation
- Defined in:
- lib/rom/ldap/relation/exporting.rb
Overview
LDIF, JSON, YAML and if loading extensions MsgPack and DSML.
Instance Method Summary collapse
-
#to_json(_opts = nil) ⇒ String
Export the relation as JSON.
-
#to_ldif ⇒ String
Export the relation as LDIF.
-
#to_yaml ⇒ String
Export the relation as YAML.
Instance Method Details
#to_json(_opts = nil) ⇒ String
Export the relation as JSON
39 40 41 |
# File 'lib/rom/ldap/relation/exporting.rb', line 39 def to_json(_opts = nil) export.to_json end |
#to_ldif ⇒ String
Export the relation as LDIF
24 25 26 |
# File 'lib/rom/ldap/relation/exporting.rb', line 24 def to_ldif export.to_ldif end |
#to_yaml ⇒ String
Export the relation as YAML
51 52 53 |
# File 'lib/rom/ldap/relation/exporting.rb', line 51 def to_yaml export.to_yaml end |