Class: Giddy::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/giddy/endpoint.rb

Direct Known Subclasses

Download, LightboxHeaders, Search

Instance Method Summary collapse

Constructor Details

#initialize(mediator, path, secure) ⇒ Endpoint

Returns a new instance of Endpoint.



3
4
5
6
7
# File 'lib/giddy/endpoint.rb', line 3

def initialize(mediator, path, secure)
  @mediator = mediator
  @path = path
  @secure = secure
end

Instance Method Details

#gettyup(name, data, bodyname = nil, secure = false) ⇒ Object



9
10
11
# File 'lib/giddy/endpoint.rb', line 9

def gettyup(name, data, bodyname=nil, secure=false)
  @mediator.gettyup @path, name, data, bodyname, @secure
end