class Esignatur::Status

esignatur status representation More info: api.esignatur.dk/Documentation/Status

Attributes

api[R]
attributes[R]
order[R]

Public Class Methods

new(order:, attributes: {}, api:) click to toggle source
# File lib/esignatur/status.rb, line 13
def initialize(order:, attributes: {}, api:)
  @attributes = attributes
  @order = order
  @api = api
end

Public Instance Methods

fetch() click to toggle source
# File lib/esignatur/status.rb, line 19
def fetch
  response = api_get("status/get/#{order.id}")
  @attributes = response.json_body if errors.empty?
  self
end