Class: SDM::DynamoDB
- Inherits:
-
Object
- Object
- SDM::DynamoDB
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil) ⇒ DynamoDB
Returns a new instance of DynamoDB.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 |
# File 'lib/models/porcelain.rb', line 1076 def initialize( id: nil, name: nil, healthy: nil, tags: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if region != nil @region = region end if endpoint != nil @endpoint = endpoint end if port_override != nil @port_override = port_override end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
1066 1067 1068 |
# File 'lib/models/porcelain.rb', line 1066 def access_key @access_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1072 1073 1074 |
# File 'lib/models/porcelain.rb', line 1072 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1062 1063 1064 |
# File 'lib/models/porcelain.rb', line 1062 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1058 1059 1060 |
# File 'lib/models/porcelain.rb', line 1058 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1060 1061 1062 |
# File 'lib/models/porcelain.rb', line 1060 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1074 1075 1076 |
# File 'lib/models/porcelain.rb', line 1074 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
1070 1071 1072 |
# File 'lib/models/porcelain.rb', line 1070 def region @region end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1068 1069 1070 |
# File 'lib/models/porcelain.rb', line 1068 def secret_access_key @secret_access_key end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1064 1065 1066 |
# File 'lib/models/porcelain.rb', line 1064 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1116 1117 1118 1119 1120 1121 1122 |
# File 'lib/models/porcelain.rb', line 1116 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |