class VLC360::Work

Constants

SAVE_URL

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method VLC360::Resource::new
# File lib/vlc360/work.rb, line 15
def initialize(attributes = {})
  @id = -1

  super
end

Public Instance Methods

persisted?() click to toggle source
# File lib/vlc360/work.rb, line 21
def persisted?
  @id != -1
end
process_response(data) click to toggle source
Calls superclass method VLC360::APIResource#process_response
# File lib/vlc360/work.rb, line 25
def process_response(data)
  super(data).tap do |result|
    @id = data.parsed_response['ServiceID'] if result
  end
end