lib/phaxio/resources/phax_code.rb in phaxio-2.1.0.pre vs lib/phaxio/resources/phax_code.rb in phaxio-2.1.0

- old
+ new

@@ -26,11 +26,11 @@ # - *metadata* [String] - Metadata to be associated with the PhaxCode. # - *type* [String] - If set to "png", this method will return a PNG # file instead of a PhaxCode object. # @return [Phaxio::Resources::PhaxCode | File] The created PhaxCode # @raise [Phaxio::Error::PhaxioError] - # @see https://www.phaxio.com/docs/api/v2/phaxcodes/create_phax_code + # @see https://www.phaxio.com/docs/api/v2.1/phaxcodes/create_phax_code def create params = {} endpoint = case (params[:type] || params['type']).to_s when 'png' then phax_codes_endpoint_png else phax_codes_endpoint end @@ -46,10 +46,10 @@ # default PhaxCode will be returned. # - *type* [String] - If set to "png", this method will return a PNG file instead of a # PhaxCode object. # @return [Phaxio::Resources::PhaxCode | File] # @raise [Phaxio::Error::PhaxioError] - # @see https://www.phaxio.com/docs/api/v2/phaxcodes/retrieve_phax_code + # @see https://www.phaxio.com/docs/api/v2.1/phaxcodes/retrieve_phax_code def get params = {} identifier = params[:identifier] || params['identifier'] endpoint = case (identifier) when nil then default_phax_code_path else phax_code_endpoint(identifier) \ No newline at end of file