Class: Desk::Api::Topics

Inherits:
Object
  • Object
show all
Includes:
Creatable, Deletable, Listable
Defined in:
lib/desk/api/topics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Deletable

#delete

Methods included from Creatable

#create, #update

Methods included from Listable

#all, #show

Constructor Details

#initialize(connection) ⇒ Topics

Returns a new instance of Topics.



17
18
19
20
21
# File 'lib/desk/api/topics.rb', line 17

def initialize(connection)
  @connection = connection
  @endpoint = "topics"
  @return_class = Desk::Topic
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



15
16
17
# File 'lib/desk/api/topics.rb', line 15

def connection
  @connection
end

#endpointObject (readonly)

Returns the value of attribute endpoint.



15
16
17
# File 'lib/desk/api/topics.rb', line 15

def endpoint
  @endpoint
end

#return_classObject (readonly)

Returns the value of attribute return_class.



15
16
17
# File 'lib/desk/api/topics.rb', line 15

def return_class
  @return_class
end