Class: Scribesend::EntryLine

Inherits:
APIResource show all
Defined in:
lib/scribesend/entry_line.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from APIResource

class_name, #refresh, request

Methods inherited from ScribesendObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #serialize_nested_object, serialize_params, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Scribesend::ScribesendObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Scribesend::ScribesendObject

Class Method Details

.allObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/scribesend/entry_line.rb', line 15

def self.all
  raise NotImplementedError.new("Entry_lines cannot be retrieved individually. Retrieve an entry instead.")
end

.createObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/scribesend/entry_line.rb', line 19

def self.create
  raise NotImplementedError.new("Entry_lines cannot be created outside of an entry.")
end

.retrieve(id, opts = nil) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/scribesend/entry_line.rb', line 11

def self.retrieve(id, opts=nil)
  raise NotImplementedError.new("Entry_lines cannot be retrieved individually. Retrieve an entry instead.")
end

.urlObject



3
4
5
# File 'lib/scribesend/entry_line.rb', line 3

def self.url
  return nil
end

Instance Method Details

#saveObject

Raises:

  • (NotImplementedError)


23
24
25
26
27
28
# File 'lib/scribesend/entry_line.rb', line 23

def save
  raise NotImplementedError.new("Entry_lines cannot be updated within an entry. " \
                                "If you want to make changes to an entry_line, you will need to create " \
                                "a new entry that adjusts the corresponding accounts and values. " \
                                "See https://scribesend.com/docs for more details.")
end

#urlObject



7
8
9
# File 'lib/scribesend/entry_line.rb', line 7

def url
  return nil
end