Module: Billomat::ResourceWithoutId

Included in:
SingletonBase
Defined in:
lib/billomat-rb.rb

Instance Method Summary collapse

Instance Method Details

#saveObject



96
97
98
99
100
# File 'lib/billomat-rb.rb', line 96

def save
  connection.put(element_path(prefix_options), encode, self.class.headers).tap do |response|
    load_attributes_from_response(response)
  end
end