Class: TildaRuby::Resources::Export
- Inherits:
-
Object
- Object
- TildaRuby::Resources::Export
- Defined in:
- lib/tilda_ruby/resources/export.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Export
constructor
private
A new instance of Export.
- #retrieve(pageid:, request_options: {}) ⇒ TildaRuby::Models::ExportRetrieveResponse::UnionMember0, TildaRuby::Models::ExportRetrieveResponse::ErrorResponse
- #retrieve_full(pageid:, request_options: {}) ⇒ TildaRuby::Models::ExportRetrieveFullResponse::UnionMember0, TildaRuby::Models::ExportRetrieveFullResponse::ErrorResponse
Constructor Details
#initialize(client:) ⇒ Export
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Export.
49 50 51 |
# File 'lib/tilda_ruby/resources/export.rb', line 49 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(pageid:, request_options: {}) ⇒ TildaRuby::Models::ExportRetrieveResponse::UnionMember0, TildaRuby::Models::ExportRetrieveResponse::ErrorResponse
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/tilda_ruby/resources/export.rb', line 14 def retrieve(params) parsed, = TildaRuby::ExportRetrieveParams.dump_request(params) query = TildaRuby::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/getpageexport", query: query, model: TildaRuby::Models::ExportRetrieveResponse, options: ) end |
#retrieve_full(pageid:, request_options: {}) ⇒ TildaRuby::Models::ExportRetrieveFullResponse::UnionMember0, TildaRuby::Models::ExportRetrieveFullResponse::ErrorResponse
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/tilda_ruby/resources/export.rb', line 34 def retrieve_full(params) parsed, = TildaRuby::ExportRetrieveFullParams.dump_request(params) query = TildaRuby::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "v1/getpagefullexport", query: query, model: TildaRuby::Models::ExportRetrieveFullResponse, options: ) end |