Class: Desk::Api::Translations
- Inherits:
-
Object
- Object
- Desk::Api::Translations
- Defined in:
- lib/desk/api/translations.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#return_class ⇒ Object
readonly
Returns the value of attribute return_class.
Instance Method Summary collapse
-
#initialize(connection, parent) ⇒ Translations
constructor
A new instance of Translations.
Methods included from Creatable
Methods included from Listable
Constructor Details
#initialize(connection, parent) ⇒ Translations
Returns a new instance of Translations.
14 15 16 17 18 19 20 |
# File 'lib/desk/api/translations.rb', line 14 def initialize(connection, parent) @connection = connection raise ArgumentError unless parent @parent = parent @endpoint = "#{parent.endpoint}/translations" @return_class = Desk::Translation end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
12 13 14 |
# File 'lib/desk/api/translations.rb', line 12 def connection @connection end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
12 13 14 |
# File 'lib/desk/api/translations.rb', line 12 def endpoint @endpoint end |
#return_class ⇒ Object (readonly)
Returns the value of attribute return_class.
12 13 14 |
# File 'lib/desk/api/translations.rb', line 12 def return_class @return_class end |