class Aspire::Object::Digitisation
Attributes
bundle_id[RW]
@!attribute [rw] bundle_id
@return [String] the digitisation bundle ID
request_id[RW]
@!attribute [rw] request_id
@return [String] the digitisation request ID
request_status[RW]
@!attribute [rw] request_status
@return [String] the digitisation request status
Public Class Methods
new(json: nil, ld: nil)
click to toggle source
Initialises a new Digitisation
instance @param json [Hash] the parsed JSON data from the JSON API
@param ld [Hash] the parsed JSON data from the linked data API
@return [void]
# File lib/aspire/object/digitisation.rb, line 23 def initialize(json: nil, ld: nil) if json self.bundle_id = json['bundleId'] self.request_id = json['requestId'] self.request_status = json['requestStatus'] else self.bundle_id = nil self.request_id = nil self.request_status = nil end end
Public Instance Methods
to_s()
click to toggle source
Returns a string representation of the Digitisation
instance (the request ID) @return [String] the string representation of the Digitisation
instance
# File lib/aspire/object/digitisation.rb, line 38 def to_s request_id.to_s end