Module: JSONAPIonify::Api::Relationship::Documentation
- Included in:
- JSONAPIonify::Api::Relationship
- Defined in:
- lib/jsonapionify/api/relationship/documentation.rb
Instance Method Summary collapse
Instance Method Details
#documentation_object ⇒ Object
11 12 13 14 15 16 |
# File 'lib/jsonapionify/api/relationship/documentation.rb', line 11 def documentation_object OpenStruct.new( name: name, resource: resource_class.type ) end |
#options_json ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/jsonapionify/api/relationship/documentation.rb', line 3 def { name: name, type: resource.type, relationship_type: self.class.name.split(':').last.downcase } end |