Class: ResoTransport::EntitySet

Inherits:
Struct
  • Object
show all
Defined in:
lib/reso_transport/entity_set.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#entity_typeObject

Returns the value of attribute entity_type

Returns:

  • (Object)

    the current value of entity_type



2
3
4
# File 'lib/reso_transport/entity_set.rb', line 2

def entity_type
  @entity_type
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/reso_transport/entity_set.rb', line 2

def name
  @name
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



2
3
4
# File 'lib/reso_transport/entity_set.rb', line 2

def schema
  @schema
end

Class Method Details

.from_stream(args) ⇒ Object



4
5
6
7
8
# File 'lib/reso_transport/entity_set.rb', line 4

def self.from_stream(args)
  schema, entity_type = ResoTransport.split_schema_and_class_name(args["EntityType"])

  new(args["Name"], schema, entity_type)
end