Class: Freshdesk::FreshdeskObject

Inherits:
Object
  • Object
show all
Defined in:
lib/freshdesk/freshdesk_object.rb

Direct Known Subclasses

Ticket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ FreshdeskObject

Returns a new instance of FreshdeskObject.



3
4
5
# File 'lib/freshdesk/freshdesk_object.rb', line 3

def initialize(endpoint)
  @endpoint = endpoint
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



7
8
9
# File 'lib/freshdesk/freshdesk_object.rb', line 7

def endpoint
  @endpoint
end

Instance Method Details

#resource(params: {}, id: nil) ⇒ Object



9
10
11
# File 'lib/freshdesk/freshdesk_object.rb', line 9

def resource(params: {}, id: nil)
  Freshdesk::Resource.new(endpoint, params, id)
end