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.



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

def params
  @params
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#methodObject



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

def method
  @method ||= :get
end

#page=(page) ⇒ Object



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

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

#paginated?Boolean

Returns:

  • (Boolean)


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

def paginated?
  !!@paginated
end

#urlObject



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

def url
  Esi.generate_url(path, params)
end