Module: OembedProvidable::Provided::InstanceMethods

Defined in:
lib/oembed_providable.rb

Instance Method Summary collapse

Instance Method Details

#oembed_max_dimensionsObject



196
197
198
# File 'lib/oembed_providable.rb', line 196

def oembed_max_dimensions
  @oembed_max_dimensions || { :height => nil, :width => nil }
end

#oembed_max_dimensions=(options) ⇒ Object



191
192
193
194
# File 'lib/oembed_providable.rb', line 191

def oembed_max_dimensions=(options)
  options = { :height => nil, :width => nil } if options.blank?
  @oembed_max_dimensions = options
end

#oembed_response(options = {}) ⇒ Object



187
188
189
# File 'lib/oembed_providable.rb', line 187

def oembed_response(options = {})
  @oembed_response ||= self.class::OembedResponse.new(self, options)
end