Class: Esi::Calls::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/esi/calls.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



34
35
36
# File 'lib/esi/calls.rb', line 34

def params
  @params
end

#pathObject

Returns the value of attribute path.



34
35
36
# File 'lib/esi/calls.rb', line 34

def path
  @path
end

Instance Method Details

#methodObject



36
37
38
# File 'lib/esi/calls.rb', line 36

def method
  @method ||= :get
end

#page=(page) ⇒ Object



44
45
46
47
# File 'lib/esi/calls.rb', line 44

def page=(page)
  self.params ||= {}
  self.params[:page] = page
end

#paginated?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/esi/calls.rb', line 49

def paginated?
  !!@paginated
end

#urlObject



40
41
42
# File 'lib/esi/calls.rb', line 40

def url
  Esi.generate_url(path, params)
end