Skip to content

Commit

Permalink
rename asset_update_request for consistency in application (#662)
Browse files Browse the repository at this point in the history
* rename asset_update_request for consistency in application

* more renaming of asset_update_request

---------

Co-authored-by: leefaisonr <rl3667@princeton.edu>
  • Loading branch information
Seanwarren77 and leefaisonr authored Apr 26, 2024
1 parent 180c95f commit 2bf24ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Mediaflux
module Http
class UpdateAssetRequest < Request
class AssetUpdateRequest < Request
# Constructor
# @param session_token [String] the API token for the authenticated session
# @param id [Int] Mediaflux asset ID of the asset to update
Expand Down
2 changes: 1 addition & 1 deletion app/models/project_mediaflux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.create!(project:, session_id:, xml_namespace: nil)

def self.update(project:, session_id:)
tigerdata_values = project_values(project: project)
Mediaflux::Http::UpdateAssetRequest.new(session_token: session_id, id: project.mediaflux_id, tigerdata_values: tigerdata_values).resolve
Mediaflux::Http::AssetUpdateRequest.new(session_token: session_id, id: project.mediaflux_id, tigerdata_values: tigerdata_values).resolve
end

# This method is used for transforming iso8601 dates to dates that MediaFlux likes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require "rails_helper"

RSpec.describe Mediaflux::Http::UpdateAssetRequest, type: :model do
RSpec.describe Mediaflux::Http::AssetUpdateRequest, type: :model do
let(:mediaflux_url) { "http://mediaflux.example.com:8888/__mflux_svc__" }
let(:metadata) do
{
Expand Down

0 comments on commit 2bf24ac

Please sign in to comment.