Class: Podio::Embed
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::Embed
- Defined in:
- lib/podio/models/embed.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, #initialize_attributes, list, member, #new_record?, output_attribute_as_json, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.create(url) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/podio/models/embed.rb', line 21 def create(url) response = Podio.connection.post do |req| req.url '/embed/' req.body = {:url => url } end member response.body end |
.find(id) ⇒ Object
29 30 31 |
# File 'lib/podio/models/embed.rb', line 29 def find(id) member Podio.connection.get("/embed/#{id}").body end |