Class: JSONAPI::Document::Links
- Inherits:
- 
      NameValuePairCollection
      
        - Object
- Collection
- NameValuePairCollection
- JSONAPI::Document::Links
 
- Defined in:
- lib/easy/jsonapi/document/links.rb,
 lib/easy/jsonapi/document/links/link.rb
Overview
The links of a resource
Defined Under Namespace
Classes: Link
Instance Method Summary collapse
- 
  
    
      #add(link)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Add a jsonapi member to the collection. 
- 
  
    
      #initialize(link_arr = [])  ⇒ Links 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Links. 
Methods inherited from NameValuePairCollection
Methods inherited from Collection
#[], #[]=, #each, #empty?, #get, #include?, #insert, #keys, #remove, #set, #size, #to_s
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class JSONAPI::NameValuePairCollection
Instance Method Details
#add(link) ⇒ Object
Add a jsonapi member to the collection
| 21 22 23 | # File 'lib/easy/jsonapi/document/links.rb', line 21 def add(link) super(link, &:name) end |