Last active
          August 29, 2015 14:03 
        
      - 
      
- 
        Save pxlpnk/6b1ae21dfcb9f1ed53a7 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | gem 'contentful' | |
| client = Contentful::Client.new( | |
| access_token: 'b4c0n73n7fu1', | |
| space: 'cfexampleapi' | |
| ) | |
| entries = client.entries('sys.id[ne]' => 'nyancat') | |
| entry = entries.first | |
| entry.content_type | |
| # => #<Contentful::Link: @sys={:type=>"Link", :linkType=>"ContentType", :id=>"dog"}> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment