Class: AppEngine::MapReduce::DatastoreInputFormat

Inherits:
Object
  • Object
show all
Defined in:
lib/appengine-mapreduce/datastore_input_format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind) ⇒ DatastoreInputFormat

Returns a new instance of DatastoreInputFormat.



8
9
10
# File 'lib/appengine-mapreduce/datastore_input_format.rb', line 8

def initialize kind
  self.kind = kind
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



6
7
8
# File 'lib/appengine-mapreduce/datastore_input_format.rb', line 6

def kind
  @kind
end

Instance Method Details

#to_conf_propertiesObject



12
13
14
# File 'lib/appengine-mapreduce/datastore_input_format.rb', line 12

def to_conf_properties 
  { DatastoreInputFormat::ENTITY_KIND_KEY => kind }
end