Class: BatchlyApi::AddS3DataSourceRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/batchly_api/models/add_s_3_data_source_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) ⇒ Object



15
16
17
# File 'lib/batchly_api/models/add_s_3_data_source_request.rb', line 15

def method_missing (method_name)
  puts "there's no method called '#{method_name}'"
end

Instance Attribute Details

#bucketString

Name of the S3 bucket

Returns:

  • (String)


8
9
10
# File 'lib/batchly_api/models/add_s_3_data_source_request.rb', line 8

def bucket
  @bucket
end

#folderString

Folder within the S3 bucket

Returns:

  • (String)


12
13
14
# File 'lib/batchly_api/models/add_s_3_data_source_request.rb', line 12

def folder
  @folder
end

Instance Method Details

#key_mapObject

Defines the key map for json serialization



26
27
28
29
30
31
# File 'lib/batchly_api/models/add_s_3_data_source_request.rb', line 26

def key_map
  hash = {}
  hash['Bucket'] = self.bucket
  hash['Folder'] = self.folder
  hash
end

#to_jsonObject

Creates JSON of the curent object



20
21
22
23
# File 'lib/batchly_api/models/add_s_3_data_source_request.rb', line 20

def to_json
  hash = self.key_map()
  hash.to_json
end