Module: ResoTransport

Defined in:
lib/reso_transport.rb,
lib/reso_transport/enum.rb,
lib/reso_transport/query.rb,
lib/reso_transport/client.rb,
lib/reso_transport/schema.rb,
lib/reso_transport/version.rb,
lib/reso_transport/metadata.rb,
lib/reso_transport/property.rb,
lib/reso_transport/resource.rb,
lib/reso_transport/entity_set.rb,
lib/reso_transport/entity_type.rb,
lib/reso_transport/configuration.rb,
lib/reso_transport/metadata_parser.rb,
lib/reso_transport/authentication/access.rb,
lib/reso_transport/authentication/middleware.rb,
lib/reso_transport/authentication/auth_strategy.rb,
lib/reso_transport/authentication/fetch_token_auth.rb,
lib/reso_transport/authentication/static_token_auth.rb

Defined Under Namespace

Modules: Authentication Classes: AccessDenied, Client, Configuration, EntitySet, EntityType, Enum, Error, Member, Metadata, MetadataParser, Property, Query, Resource, Schema

Constant Summary collapse

ODATA_TIME_FORMAT =
"%Y-%m-%dT%H:%M:%S%Z"
VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



45
46
47
# File 'lib/reso_transport.rb', line 45

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



49
50
51
# File 'lib/reso_transport.rb', line 49

def self.configure
  yield(configuration)
end

.split_schema_and_class_name(s) ⇒ Object



53
54
55
# File 'lib/reso_transport.rb', line 53

def self.split_schema_and_class_name(s)
  s.partition(/(\w+)$/).first(2).map {|s| s.sub(/\.$/, '') }
end